Package brave.kafka.clients
Class KafkaTracing.Builder
java.lang.Object
brave.kafka.clients.KafkaTracing.Builder
- Enclosing class:
- KafkaTracing
public static final class KafkaTracing.Builder extends Object
-
Method Summary
Modifier and Type Method Description KafkaTracingbuild()KafkaTracing.BuilderremoteServiceName(String remoteServiceName)The remote service name that describes the broker in the dependency graph.KafkaTracing.BuildersingleRootSpanOnReceiveBatch(boolean singleRootSpanOnReceiveBatch)Controls the sharing of apollspan for incoming spans with no trace context.KafkaTracing.BuilderwriteB3SingleFormat(boolean writeB3SingleFormat)Deprecated.as of v5.9, this is ignored because single format is default for messaging.
-
Method Details
-
remoteServiceName
The remote service name that describes the broker in the dependency graph. Defaults to "kafka" -
singleRootSpanOnReceiveBatch
Controls the sharing of apollspan for incoming spans with no trace context.If true, all the spans received in a poll batch that do not have trace-context will be added to a single new
pollroot span. Otherwise, apollspan will be created for each such message.- Since:
- 5.10
-
writeB3SingleFormat
Deprecated.as of v5.9, this is ignored because single format is default for messaging. UseB3Propagation.newFactoryBuilder()to change the default. -
build
-