Package zipkin2.collector.kafka
Class KafkaCollector
- java.lang.Object
-
- zipkin2.Component
-
- zipkin2.collector.CollectorComponent
-
- zipkin2.collector.kafka.KafkaCollector
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public final class KafkaCollector extends CollectorComponent
This collector polls a Kafka topic for messages that contain TBinaryProtocol big-endian encoded lists of spans. These spans are pushed to aspan consumer
.This collector uses a Kafka 0.10+ consumer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KafkaCollector.Builder
Configuration including defaults needed to consume spans from a Kafka topic.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KafkaCollector.Builder
builder()
CheckResult
check()
void
close()
KafkaCollector
start()
String
toString()
-
-
-
Method Detail
-
builder
public static KafkaCollector.Builder builder()
-
start
public KafkaCollector start()
- Specified by:
start
in classCollectorComponent
-
check
public CheckResult check()
-
close
public void close()
-
-