Class CustomizingUdpSender
java.lang.Object
com.broadleafcommerce.common.extension.monitor.ThriftSenderBase
com.broadleafcommerce.common.extension.monitor.ThriftSender
com.broadleafcommerce.common.extension.monitor.CustomizingUdpSender
- All Implemented Interfaces:
io.jaegertracing.spi.Sender
Implementation of
UdpSender
that works in conjunction with the ThriftSender
and
can embellish a span before emitting it.-
Nested Class Summary
Nested classes/interfaces inherited from class com.broadleafcommerce.common.extension.monitor.ThriftSenderBase
ThriftSenderBase.ProtocolType
-
Field Summary
Fields inherited from class com.broadleafcommerce.common.extension.monitor.ThriftSenderBase
EMIT_BATCH_OVERHEAD, protocolFactory
-
Constructor Summary
ConstructorDescriptionThis constructor expects Jaeger running running on "localhost" and port 6831CustomizingUdpSender
(String host, int port, int maxPacketSize, MetricVisualizationLinkProcessor linkProcessor) -
Method Summary
Methods inherited from class com.broadleafcommerce.common.extension.monitor.ThriftSender
calculateProcessSize, calculateSpanSize, flush
Methods inherited from class com.broadleafcommerce.common.extension.monitor.ThriftSenderBase
getMaxSpanBytes, getSize, serialize
-
Field Details
-
DEFAULT_AGENT_UDP_HOST
- See Also:
-
DEFAULT_AGENT_UDP_COMPACT_PORT
public static final int DEFAULT_AGENT_UDP_COMPACT_PORT- See Also:
-
-
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. 6831maxPacketSize
- 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 interfaceio.jaegertracing.spi.Sender
- Overrides:
append
in classThriftSender
- 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 classThriftSender
- Throws:
io.jaegertracing.internal.exceptions.SenderException
-
close
public int close() throws io.jaegertracing.internal.exceptions.SenderException- Specified by:
close
in interfaceio.jaegertracing.spi.Sender
- Overrides:
close
in classThriftSender
- Throws:
io.jaegertracing.internal.exceptions.SenderException
-
toString
- Overrides:
toString
in classThriftSender
-