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