-
- All Implemented Interfaces:
-
com.datadog.trace.core.propagation.HttpCodec.Extractor
public class TagContextExtractor implements HttpCodec.Extractor
-
-
Constructor Summary
Constructors Constructor Description TagContextExtractor(Supplier<TraceConfig> traceConfigSupplier, ContextInterpreter.Factory factory)
-
Method Summary
Modifier and Type Method Description <C> TagContextextract(C carrier, AgentPropagation.ContextVisitor<C> getter)Extracts a propagated context from the given carrier using the provided getter. voidcleanup()Cleans up any thread local resources associated with this extractor. -
-
Constructor Detail
-
TagContextExtractor
TagContextExtractor(Supplier<TraceConfig> traceConfigSupplier, ContextInterpreter.Factory factory)
-
-
Method Detail
-
extract
<C> TagContext extract(C carrier, AgentPropagation.ContextVisitor<C> getter)
Extracts a propagated context from the given carrier using the provided getter.
- Parameters:
carrier- The carrier containing the propagated context.getter- The getter used to extract data from the carrier.
-
cleanup
void cleanup()
Cleans up any thread local resources associated with this extractor.
Implementations should override this method if they need to clean up any resources.
Currently only used from tests.
-
-
-
-