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
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
remoteServiceName
public KafkaTracing.Builder remoteServiceName(String remoteServiceName)
The remote service name that describes the broker in the dependency graph. Defaults to "kafka"
-
singleRootSpanOnReceiveBatch
public KafkaTracing.Builder singleRootSpanOnReceiveBatch(boolean 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
-
build
public KafkaTracing build()
-
-