Class KafkaZipkinTracer

  • All Implemented Interfaces:
    com.twitter.finagle.tracing.Tracer, com.twitter.util.Closable

    @AutoService(com.twitter.finagle.tracing.Tracer.class)
    public final class KafkaZipkinTracer
    extends ZipkinTracer
    • Constructor Detail

      • KafkaZipkinTracer

        public KafkaZipkinTracer()
        Default constructor for the service loader
    • Method Detail

      • create

        public static KafkaZipkinTracer create​(String bootstrapServers,
                                               com.twitter.finagle.stats.StatsReceiver stats)
        Create a new instance with default configuration.
        Parameters:
        bootstrapServers - A list of host/port pairs to use for establishing the initial connection to the Kafka cluster. Like: host1:port1,host2:port2,... Does not to be all the servers part of Kafka cluster.
        stats - Gets notified when spans are accepted or dropped. If you are not interested in these events you can use NullStatsReceiver
      • create

        public static KafkaZipkinTracer create​(KafkaZipkinTracer.Config config,
                                               com.twitter.finagle.stats.StatsReceiver stats)
        Parameters:
        config - includes flush interval and kafka properties
        stats - Gets notified when spans are accepted or dropped. If you are not interested in these events you can use NullStatsReceiver
      • close

        public com.twitter.util.Future<scala.runtime.BoxedUnit> close​(com.twitter.util.Time deadline)
        Specified by:
        close in interface com.twitter.util.Closable
        Overrides:
        close in class ZipkinTracer