Class MetadataPropagatorGetter

java.lang.Object
io.axoniq.framework.tracing.micrometer.propagator.MetadataPropagatorGetter
All Implemented Interfaces:
io.micrometer.tracing.propagation.Propagator.Getter<Metadata>

@Internal public final class MetadataPropagatorGetter extends Object implements io.micrometer.tracing.propagation.Propagator.Getter<Metadata>
Propagator.Getter implementation that extracts a propagated trace context from a message's Metadata.

The trace parent is part of the message metadata when it was set on dispatch by MetadataPropagatorSetter (through Span.propagateContext(org.axonframework.messaging.core.Message)). MicrometerSpanFactory uses this getter to reconstruct the remote parent when creating handler spans, so cross-process parenting works.

This type is Internal because it is an implementation detail of the Micrometer Tracing binding; it is exposed only so MicrometerSpanFactory and tests can reference the shared INSTANCE.

Since:
5.3.0
Author:
Mateusz Nowak