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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MetadataPropagatorGetterShared singleton instance, used byMicrometerSpanFactory.Fields inherited from interface io.micrometer.tracing.propagation.Propagator.Getter
NOOP -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micrometer.tracing.propagation.Propagator.Getter
getAll
-
Field Details
-
INSTANCE
Shared singleton instance, used byMicrometerSpanFactory.
-
-
Method Details
-
get
- Specified by:
getin interfaceio.micrometer.tracing.propagation.Propagator.Getter<Metadata>
-