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 Deprecated 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.KafkaTracing.Builder
writeB3SingleFormat(boolean writeB3SingleFormat)
Deprecated.as of v5.9, this is ignored because single format is default for messaging.
-
-
-
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
-
writeB3SingleFormat
@Deprecated public KafkaTracing.Builder writeB3SingleFormat(boolean writeB3SingleFormat)
Deprecated.as of v5.9, this is ignored because single format is default for messaging. UseB3Propagation.newFactoryBuilder()
to change the default.
-
build
public KafkaTracing build()
-
-