@Immutable public class B3Propagator extends Object implements io.opentelemetry.context.propagation.HttpTextFormat
Modifier and Type | Method and Description |
---|---|
<C> io.grpc.Context |
extract(io.grpc.Context context,
C carrier,
io.opentelemetry.context.propagation.HttpTextFormat.Getter<C> getter) |
List<String> |
fields() |
static B3Propagator |
getMultipleHeaderPropagator()
Returns an instance of
B3Propagator with Multiple Header Implementation of B3
propagation protocol. |
static B3Propagator |
getSingleHeaderPropagator()
Returns an instance of
B3Propagator with Single Header Implementation of B3 propagation
protocol. |
<C> void |
inject(io.grpc.Context context,
C carrier,
io.opentelemetry.context.propagation.HttpTextFormat.Setter<C> setter) |
public static B3Propagator getSingleHeaderPropagator()
B3Propagator
with Single Header Implementation of B3 propagation
protocol. See openzipkin/b3-propagation#single-header.B3Propagator
with Single Header implementation of B3
propagation protocol.public static B3Propagator getMultipleHeaderPropagator()
B3Propagator
with Multiple Header Implementation of B3
propagation protocol. See openzipkin/b3-propagation#multiple-headers.B3Propagator
with Multiple Header implementation of B3
propagation protocol.public List<String> fields()
fields
in interface io.opentelemetry.context.propagation.HttpTextFormat
public <C> void inject(io.grpc.Context context, C carrier, io.opentelemetry.context.propagation.HttpTextFormat.Setter<C> setter)
inject
in interface io.opentelemetry.context.propagation.HttpTextFormat
public <C> io.grpc.Context extract(io.grpc.Context context, C carrier, io.opentelemetry.context.propagation.HttpTextFormat.Getter<C> getter)
extract
in interface io.opentelemetry.context.propagation.HttpTextFormat