-
public interface HttpCodec.ExtractorThis interface defines propagated context extractor.
-
-
Method Summary
Modifier and Type Method Description abstract <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. -
-
Method Detail
-
extract
abstract <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.
-
-
-
-