Class PropagatorBasedSpanLinksExtractor<REQUEST>
java.lang.Object
io.opentelemetry.instrumentation.api.internal.PropagatorBasedSpanLinksExtractor<REQUEST>
- All Implemented Interfaces:
SpanLinksExtractor<REQUEST>
public final class PropagatorBasedSpanLinksExtractor<REQUEST>
extends Object
implements SpanLinksExtractor<REQUEST>
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Constructor Summary
ConstructorsConstructorDescriptionPropagatorBasedSpanLinksExtractor
(io.opentelemetry.context.propagation.TextMapPropagator propagator, io.opentelemetry.context.propagation.TextMapGetter<REQUEST> getter) -
Method Summary
Modifier and TypeMethodDescriptionvoid
extract
(SpanLinksBuilder spanLinks, io.opentelemetry.context.Context parentContext, REQUEST request) ExtractsSpanContext
s that should be linked to the newly created span and adds them tospanLinks
.
-
Constructor Details
-
PropagatorBasedSpanLinksExtractor
public PropagatorBasedSpanLinksExtractor(io.opentelemetry.context.propagation.TextMapPropagator propagator, io.opentelemetry.context.propagation.TextMapGetter<REQUEST> getter)
-
-
Method Details
-
extract
public void extract(SpanLinksBuilder spanLinks, io.opentelemetry.context.Context parentContext, REQUEST request) Description copied from interface:SpanLinksExtractor
ExtractsSpanContext
s that should be linked to the newly created span and adds them tospanLinks
.- Specified by:
extract
in interfaceSpanLinksExtractor<REQUEST>
-