Package zipkin2.reporter.kafka08
Class KafkaSender
- java.lang.Object
-
- zipkin2.Component
-
- zipkin2.reporter.Sender
-
- zipkin2.reporter.kafka08.KafkaSender
-
- All Implemented Interfaces:
Closeable,AutoCloseable
@Deprecated public final class KafkaSender extends Sender
Deprecated.Please use io.zipkin.reporter2:zipkin-sender-kafkaThis sends (usually json v2) encoded spans to a Kafka topic.This sender is thread-safe.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKafkaSender.BuilderDeprecated.Configuration including defaults needed to send spans to a Kafka topic.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description zipkin2.CheckResultcheck()Deprecated.Ensures there are no problems reading metadata about the topic.voidclose()Deprecated.static KafkaSendercreate(String bootstrapServers)Deprecated.Creates a sender that sendsEncoding.JSONmessages.zipkin2.codec.Encodingencoding()Deprecated.intmessageMaxBytes()Deprecated.intmessageSizeInBytes(int encodedSizeInBytes)Deprecated.intmessageSizeInBytes(List<byte[]> encodedSpans)Deprecated.static KafkaSender.BuildernewBuilder()Deprecated.zipkin2.Call<Void>sendSpans(List<byte[]> encodedSpans)Deprecated.This sends all of the spans as a single message.KafkaSender.BuildertoBuilder()Deprecated.StringtoString()Deprecated.
-
-
-
Method Detail
-
create
public static KafkaSender create(String bootstrapServers)
Deprecated.Creates a sender that sendsEncoding.JSONmessages.
-
newBuilder
public static KafkaSender.Builder newBuilder()
Deprecated.
-
toBuilder
public KafkaSender.Builder toBuilder()
Deprecated.
-
messageSizeInBytes
public int messageSizeInBytes(List<byte[]> encodedSpans)
Deprecated.- Specified by:
messageSizeInBytesin classSender
-
messageSizeInBytes
public int messageSizeInBytes(int encodedSizeInBytes)
Deprecated.- Overrides:
messageSizeInBytesin classSender
-
encoding
public zipkin2.codec.Encoding encoding()
Deprecated.
-
messageMaxBytes
public int messageMaxBytes()
Deprecated.- Specified by:
messageMaxBytesin classSender
-
sendSpans
public zipkin2.Call<Void> sendSpans(List<byte[]> encodedSpans)
Deprecated.This sends all of the spans as a single message.NOTE: this blocks until the metadata server is available.
-
check
public zipkin2.CheckResult check()
Deprecated.Ensures there are no problems reading metadata about the topic.- Overrides:
checkin classzipkin2.Component
-
close
public void close()
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classzipkin2.Component
-
-