Class ExtendedContextPropagators
java.lang.Object
io.opentelemetry.api.incubator.propagation.ExtendedContextPropagators
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContextextractTextMapPropagationContext(Map<String, String> carrier, ContextPropagators propagators) Extract the context from a string map, which you get from HTTP headers of the metadata of a message you're processing.getTextMapPropagationContext(ContextPropagators propagators) Injects the current context into a string map, which can then be added to HTTP headers or the metadata of a message.
-
Field Details
-
TEXT_MAP_GETTER
-
-
Constructor Details
-
ExtendedContextPropagators
private ExtendedContextPropagators()
-
-
Method Details
-
getTextMapPropagationContext
Injects the current context into a string map, which can then be added to HTTP headers or the metadata of a message.- Parameters:
propagators- provide the propagators fromOpenTelemetry.getPropagators()
-
extractTextMapPropagationContext
public static Context extractTextMapPropagationContext(Map<String, String> carrier, ContextPropagators propagators) Extract the context from a string map, which you get from HTTP headers of the metadata of a message you're processing.- Parameters:
carrier- the string mappropagators- provide the propagators fromOpenTelemetry.getPropagators()
-