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 KafkaTracing
build()
KafkaTracing.Builder
remoteServiceName(String remoteServiceName)
The remote service name that describes the broker in the dependency graph.KafkaTracing.Builder
singleRootSpanOnReceiveBatch(boolean singleRootSpanOnReceiveBatch)
Controls the sharing of apoll
span 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 apoll
span 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
poll
root span. Otherwise, apoll
span will be created for each such message.- Since:
- 5.10
-
build
public KafkaTracing build()
-
-