@AutoService(value=com.twitter.finagle.tracing.Tracer.class) public final class KafkaZipkinTracer extends ZipkinTracer
Modifier and Type | Class and Description |
---|---|
static class |
KafkaZipkinTracer.Config |
Constructor and Description |
---|
KafkaZipkinTracer()
Default constructor for the service loader
|
Modifier and Type | Method and Description |
---|---|
com.twitter.util.Future<scala.runtime.BoxedUnit> |
close(com.twitter.util.Time deadline) |
static KafkaZipkinTracer |
create(KafkaZipkinTracer.Config config,
com.twitter.finagle.stats.StatsReceiver stats) |
static KafkaZipkinTracer |
create(String bootstrapServers,
com.twitter.finagle.stats.StatsReceiver stats)
Create a new instance with default configuration.
|
close, close
public KafkaZipkinTracer()
public static KafkaZipkinTracer create(String bootstrapServers, com.twitter.finagle.stats.StatsReceiver stats)
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 NullStatsReceiverpublic static KafkaZipkinTracer create(KafkaZipkinTracer.Config config, com.twitter.finagle.stats.StatsReceiver stats)
config
- includes flush interval and kafka propertiesstats
- Gets notified when spans are accepted or dropped. If you are not interested in
these events you can use NullStatsReceiverpublic com.twitter.util.Future<scala.runtime.BoxedUnit> close(com.twitter.util.Time deadline)
close
in interface com.twitter.util.Closable
close
in class ZipkinTracer
Copyright © 2016 OpenZipkin. All rights reserved.