Package org.apache.solr.util.tracing
Class SimplePropagator
java.lang.Object
org.apache.solr.util.tracing.SimplePropagator
- All Implemented Interfaces:
io.opentelemetry.context.propagation.TextMapPropagator
public class SimplePropagator
extends Object
implements io.opentelemetry.context.propagation.TextMapPropagator
Simple Http Header Propagator. When enabled, this will only propagate the trace id from the
client to all internal requests. It is also in charge of generating a trace id if none exists.
Note: this is very similar in impl to io.opentelemetry.extension.incubator.propagation.PassThroughPropagator. we should consider replacing/upgrading once that becomes generally available
-
Method Summary
Modifier and TypeMethodDescription<C> io.opentelemetry.context.Contextextract(io.opentelemetry.context.Context context, C carrier, io.opentelemetry.context.propagation.TextMapGetter<C> getter) fields()static io.opentelemetry.context.propagation.TextMapPropagator<C> voidinject(io.opentelemetry.context.Context context, C carrier, io.opentelemetry.context.propagation.TextMapSetter<C> setter) toString()
-
Method Details
-
getInstance
public static io.opentelemetry.context.propagation.TextMapPropagator getInstance() -
fields
- Specified by:
fieldsin interfaceio.opentelemetry.context.propagation.TextMapPropagator
-
inject
public <C> void inject(io.opentelemetry.context.Context context, C carrier, io.opentelemetry.context.propagation.TextMapSetter<C> setter) - Specified by:
injectin interfaceio.opentelemetry.context.propagation.TextMapPropagator
-
extract
public <C> io.opentelemetry.context.Context extract(io.opentelemetry.context.Context context, C carrier, io.opentelemetry.context.propagation.TextMapGetter<C> getter) - Specified by:
extractin interfaceio.opentelemetry.context.propagation.TextMapPropagator
-
toString
-