Package brave.propagation
Class B3Propagation.FactoryBuilder
java.lang.Object
brave.propagation.B3Propagation.FactoryBuilder
- Enclosing class:
- B3Propagation<K>
public static final class B3Propagation.FactoryBuilder extends Object
Defaults to
B3Propagation.Format.MULTI
for client/server spans and B3Propagation.Format.SINGLE_NO_PARENT
for messaging. Non-request spans default to B3Propagation.Format.MULTI
.-
Method Summary
Modifier and Type Method Description Propagation.Factory
build()
B3Propagation.FactoryBuilder
injectFormat(B3Propagation.Format format)
Overrides the default format ofB3Propagation.Format.MULTI
.B3Propagation.FactoryBuilder
injectFormat(Span.Kind kind, B3Propagation.Format format)
Overrides the injection format used for the indicatedspan kind
.B3Propagation.FactoryBuilder
injectFormats(Span.Kind kind, B3Propagation.Format format1, B3Propagation.Format format2)
LikeinjectFormat
, but writes two formats.
-
Method Details
-
injectFormat
Overrides the default format ofB3Propagation.Format.MULTI
. -
injectFormat
Overrides the injection format used for the indicatedspan kind
. -
injectFormats
public B3Propagation.FactoryBuilder injectFormats(Span.Kind kind, B3Propagation.Format format1, B3Propagation.Format format2)LikeinjectFormat
, but writes two formats. For example, you can setSpan.Kind.CLIENT
spans to inject bothB3Propagation.Format.MULTI
andB3Propagation.Format.SINGLE
, for transition use cases. -
build
-