Class MetadataContextGetter
java.lang.Object
org.axonframework.extension.tracing.opentelemetry.MetadataContextGetter
- All Implemented Interfaces:
io.opentelemetry.context.propagation.TextMapGetter<Message>
public class MetadataContextGetter
extends Object
implements io.opentelemetry.context.propagation.TextMapGetter<Message>
This
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.
- Since:
- 4.6.0
- Author:
- Mitchell Herrijgers
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MetadataContextGetterSingleton instance of theMetadataContextGetter, used by theOpenTelemetrySpanFactory. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.context.propagation.TextMapGetter
getAll
-
Field Details
-
INSTANCE
Singleton instance of theMetadataContextGetter, used by theOpenTelemetrySpanFactory.
-
-
Method Details