Package zipkin2.collector.scribe
Class ScribeCollector
java.lang.Object
zipkin2.Component
zipkin2.collector.CollectorComponent
zipkin2.collector.scribe.ScribeCollector
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class ScribeCollector
extends zipkin2.collector.CollectorComponent
This collector accepts Scribe logs in a specified category. Each log entry is expected to contain
a single span, which is TBinaryProtocol big-endian, then base64 encoded. These spans are chained
to an
asynchronous span consumer.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration including defaults needed to receive spans from a Scribe category. -
Method Summary
-
Method Details
-
newBuilder
-
start
Will throw an exception if theportis already in use.- Specified by:
startin classzipkin2.collector.CollectorComponent
-
check
public zipkin2.CheckResult check()- Overrides:
checkin classzipkin2.Component
-
port
public int port()Returns zero untilstart()was called. -
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classzipkin2.Component
-