public class MetadataContextGetter extends Object implements io.opentelemetry.context.propagation.TextMapGetter<Message<?>>
TextMapGetter implementation is able to extract the parent OpenTelemetry span context from a
Message.
The trace parent is part of the message's MetaData, if it was set when
dispatching by the MetadataContextSetter. This is done using the
SpanFactory.propagateContext(Message) method for the message.
| Modifier and Type | Field and Description |
|---|---|
static MetadataContextGetter |
INSTANCE
Singleton instance of the
MetadataContextGetter, used by the OpenTelemetrySpanFactory. |
| Modifier and Type | Method and Description |
|---|---|
String |
get(Message<?> message,
String key) |
Iterable<String> |
keys(Message<?> message) |
public static final MetadataContextGetter INSTANCE
MetadataContextGetter, used by the OpenTelemetrySpanFactory.Copyright © 2010–2023. All rights reserved.