Class ThriftSender
java.lang.Object
com.broadleafcommerce.common.extension.monitor.ThriftSenderBase
com.broadleafcommerce.common.extension.monitor.ThriftSender
- All Implemented Interfaces:
io.jaegertracing.spi.Sender
- Direct Known Subclasses:
CustomizingUdpSender
Modified from original for compatibility with libthrift 0.14.0
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintappend(io.jaegertracing.internal.JaegerSpan span) protected intcalculateProcessSize(io.jaegertracing.thriftjava.Process proc) protected intcalculateSpanSize(io.jaegertracing.thriftjava.Span span) intclose()intflush()abstract voidtoString()Methods inherited from class com.broadleafcommerce.common.extension.monitor.ThriftSenderBase
getMaxSpanBytes, getSize, serialize
-
Constructor Details
-
ThriftSender
- Parameters:
protocolType- protocol type (compact or binary)maxPacketSize- if 0 it will use default value 65000
-
-
Method Details
-
append
public int append(io.jaegertracing.internal.JaegerSpan span) throws io.jaegertracing.internal.exceptions.SenderException - Specified by:
appendin interfaceio.jaegertracing.spi.Sender- Throws:
io.jaegertracing.internal.exceptions.SenderException
-
calculateProcessSize
protected int calculateProcessSize(io.jaegertracing.thriftjava.Process proc) throws io.jaegertracing.internal.exceptions.SenderException - Throws:
io.jaegertracing.internal.exceptions.SenderException
-
calculateSpanSize
protected int calculateSpanSize(io.jaegertracing.thriftjava.Span span) throws io.jaegertracing.internal.exceptions.SenderException - Throws:
io.jaegertracing.internal.exceptions.SenderException
-
send
public abstract void send(io.jaegertracing.thriftjava.Process process, List<io.jaegertracing.thriftjava.Span> spans) throws io.jaegertracing.internal.exceptions.SenderException - Throws:
io.jaegertracing.internal.exceptions.SenderException
-
flush
public int flush() throws io.jaegertracing.internal.exceptions.SenderException- Specified by:
flushin interfaceio.jaegertracing.spi.Sender- Throws:
io.jaegertracing.internal.exceptions.SenderException
-
close
public int close() throws io.jaegertracing.internal.exceptions.SenderException- Specified by:
closein interfaceio.jaegertracing.spi.Sender- Throws:
io.jaegertracing.internal.exceptions.SenderException
-
toString
- Overrides:
toStringin classThriftSenderBase
-