public abstract class KafkaSender extends Sender
This sender is thread-safe.
This sender is linked against Kafka 0.10.2+, which allows it to work with Kafka 0.10+ brokers
| Modifier and Type | Class | Description |
|---|---|---|
static class |
KafkaSender.Builder |
Configuration including defaults needed to send spans to a Kafka topic.
|
| Modifier and Type | Method | Description |
|---|---|---|
zipkin2.CheckResult |
check() |
Ensures there are no problems reading metadata about the topic.
|
void |
close() |
|
static KafkaSender |
create(java.lang.String bootstrapServers) |
|
int |
messageSizeInBytes(int encodedSizeInBytes) |
|
int |
messageSizeInBytes(java.util.List<byte[]> encodedSpans) |
|
static KafkaSender.Builder |
newBuilder() |
|
zipkin2.Call<java.lang.Void> |
sendSpans(java.util.List<byte[]> encodedSpans) |
This sends all of the spans as a single message.
|
abstract KafkaSender.Builder |
toBuilder() |
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitencoding, messageMaxBytespublic static KafkaSender create(java.lang.String bootstrapServers)
public static KafkaSender.Builder newBuilder()
public abstract KafkaSender.Builder toBuilder()
public int messageSizeInBytes(java.util.List<byte[]> encodedSpans)
messageSizeInBytes in class Senderpublic int messageSizeInBytes(int encodedSizeInBytes)
messageSizeInBytes in class Senderpublic zipkin2.Call<java.lang.Void> sendSpans(java.util.List<byte[]> encodedSpans)
NOTE: this blocks until the metadata server is available.
public zipkin2.CheckResult check()
check in class zipkin2.Componentpublic void close()
close in class zipkin2.Componentpublic final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016–2018 OpenZipkin. All rights reserved.