Class CollectorComponent

java.lang.Object
zipkin2.Component
zipkin2.collector.CollectorComponent
All Implemented Interfaces:
Closeable, AutoCloseable

public abstract class CollectorComponent extends Component
The collector represents the server-side of a transport. Its job is to take spans from a transport and store ones it has sampled.

Call start() to start collecting spans.

  • Constructor Details

    • CollectorComponent

      public CollectorComponent()
  • Method Details

    • start

      public abstract CollectorComponent start()
      Starts the server-side of the transport, typically listening or looking up a queue.

      Many implementations block the calling thread until services are available.