Class HttpTraceContext
- java.lang.Object
-
- io.opentelemetry.api.trace.propagation.HttpTraceContext
-
- All Implemented Interfaces:
io.opentelemetry.context.propagation.TextMapPropagator
@Immutable public final class HttpTraceContext extends Object implements io.opentelemetry.context.propagation.TextMapPropagator
Implementation of the TraceContext propagation protocol. See w3c/distributed-tracing.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <C> io.opentelemetry.context.Context
extract(io.opentelemetry.context.Context context, C carrier, io.opentelemetry.context.propagation.TextMapPropagator.Getter<C> getter)
List<String>
fields()
static HttpTraceContext
getInstance()
<C> void
inject(io.opentelemetry.context.Context context, C carrier, io.opentelemetry.context.propagation.TextMapPropagator.Setter<C> setter)
-
-
-
Method Detail
-
getInstance
public static HttpTraceContext getInstance()
-
fields
public List<String> fields()
- Specified by:
fields
in interfaceio.opentelemetry.context.propagation.TextMapPropagator
-
inject
public <C> void inject(io.opentelemetry.context.Context context, C carrier, io.opentelemetry.context.propagation.TextMapPropagator.Setter<C> setter)
- Specified by:
inject
in interfaceio.opentelemetry.context.propagation.TextMapPropagator
-
extract
public <C> io.opentelemetry.context.Context extract(io.opentelemetry.context.Context context, @Nullable C carrier, io.opentelemetry.context.propagation.TextMapPropagator.Getter<C> getter)
- Specified by:
extract
in interfaceio.opentelemetry.context.propagation.TextMapPropagator
-
-