Package zipkin2.reporter.libthrift
Class LibthriftSender
java.lang.Object
zipkin2.Component
zipkin2.reporter.Sender
zipkin2.reporter.libthrift.LibthriftSender
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class LibthriftSender extends Sender
Blocking reporter that sends spans to Zipkin via Scribe.
This sender is not thread-safe.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLibthriftSender.Builder -
Method Summary
Modifier and Type Method Description zipkin2.CheckResultcheck()Sends an empty log message to the configured host.voidclose()static LibthriftSendercreate(String host)Creates a sender that sendsEncoding.THRIFTmessages.zipkin2.codec.Encodingencoding()intmessageMaxBytes()intmessageSizeInBytes(int encodedSizeInBytes)intmessageSizeInBytes(List<byte[]> encodedSpans)Size of the Thrift RPC messagestatic LibthriftSender.BuildernewBuilder()zipkin2.Call<Void>sendSpans(List<byte[]> encodedSpans)LibthriftSender.BuildertoBuilder()StringtoString()
-
Method Details
-
create
Creates a sender that sendsEncoding.THRIFTmessages. -
newBuilder
-
toBuilder
-
encoding
public zipkin2.codec.Encoding encoding() -
messageMaxBytes
public int messageMaxBytes()- Specified by:
messageMaxBytesin classSender
-
messageSizeInBytes
public int messageSizeInBytes(int encodedSizeInBytes)- Overrides:
messageSizeInBytesin classSender
-
messageSizeInBytes
Size of the Thrift RPC message- Specified by:
messageSizeInBytesin classSender
-
sendSpans
-
check
public zipkin2.CheckResult check()Sends an empty log message to the configured host.- Overrides:
checkin classzipkin2.Component
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classzipkin2.Component
-
toString
-