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.
  • Method Details

    • newBuilder

      public static ScribeCollector.Builder newBuilder()
    • start

      public ScribeCollector start()
      Will throw an exception if the port is already in use.
      Specified by:
      start in class zipkin2.collector.CollectorComponent
    • check

      public zipkin2.CheckResult check()
      Overrides:
      check in class zipkin2.Component
    • port

      public int port()
      Returns zero until start() was called.
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class zipkin2.Component