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
-
Method Summary
Modifier and TypeMethodDescriptionint
append
(io.jaegertracing.internal.JaegerSpan span) protected int
calculateProcessSize
(io.jaegertracing.thriftjava.Process proc) protected int
calculateSpanSize
(io.jaegertracing.thriftjava.Span span) int
close()
int
flush()
abstract void
toString()
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:
append
in 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:
flush
in interfaceio.jaegertracing.spi.Sender
- Throws:
io.jaegertracing.internal.exceptions.SenderException
-
close
public int close() throws io.jaegertracing.internal.exceptions.SenderException- Specified by:
close
in interfaceio.jaegertracing.spi.Sender
- Throws:
io.jaegertracing.internal.exceptions.SenderException
-
toString
- Overrides:
toString
in classThriftSenderBase
-