-
- 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 voidcleanup()Cleans up any thread local resources associated with this extractor. <C> TagContextextract(C carrier, AgentPropagation.ContextVisitor<C> getter)Extracts a propagated context from the given carrier using the provided getter. -
-
Constructor Detail
-
TagContextExtractor
TagContextExtractor(Supplier<TraceConfig> traceConfigSupplier, ContextInterpreter.Factory factory)
-
-
Method Detail
-
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.
-
extract
@Nullable() <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.
-
-
-
-