Class CustomizingUdpSender

All Implemented Interfaces:
io.jaegertracing.spi.Sender

public class CustomizingUdpSender extends ThriftSender
Implementation of UdpSender that works in conjunction with the ThriftSender and can embellish a span before emitting it.
  • Field Details

  • Constructor Details

    • CustomizingUdpSender

      public CustomizingUdpSender()
      This constructor expects Jaeger running running on "localhost" and port 6831
    • CustomizingUdpSender

      public CustomizingUdpSender(String host, int port, int maxPacketSize, MetricVisualizationLinkProcessor linkProcessor)
      Parameters:
      host - host e.g. "localhost"
      port - port e.g. 6831
      maxPacketSize - if 0 it will use 65000
  • Method Details

    • append

      public int append(io.jaegertracing.internal.JaegerSpan span) throws io.jaegertracing.internal.exceptions.SenderException
      Specified by:
      append in interface io.jaegertracing.spi.Sender
      Overrides:
      append in class ThriftSender
      Throws:
      io.jaegertracing.internal.exceptions.SenderException
    • send

      public void send(io.jaegertracing.thriftjava.Process process, List<io.jaegertracing.thriftjava.Span> spans) throws io.jaegertracing.internal.exceptions.SenderException
      Specified by:
      send in class ThriftSender
      Throws:
      io.jaegertracing.internal.exceptions.SenderException
    • close

      public int close() throws io.jaegertracing.internal.exceptions.SenderException
      Specified by:
      close in interface io.jaegertracing.spi.Sender
      Overrides:
      close in class ThriftSender
      Throws:
      io.jaegertracing.internal.exceptions.SenderException
    • toString

      public String toString()
      Overrides:
      toString in class ThriftSender