Class MetadataPropagatorSetter

java.lang.Object
io.axoniq.framework.tracing.micrometer.propagator.MetadataPropagatorSetter
All Implemented Interfaces:
io.micrometer.tracing.propagation.Propagator.Setter<Map<String,String>>

@Internal public final class MetadataPropagatorSetter extends Object implements io.micrometer.tracing.propagation.Propagator.Setter<Map<String,String>>
Propagator.Setter implementation that writes the active trace context into a mutable Map.

Since an Message is immutable, this setter cannot mutate the message directly. Instead it writes the propagation entries into a temporary Map, which the binding's span implementation then merges onto the message via Message.andMetadata(Map).

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

Since:
5.3.0
Author:
Mateusz Nowak
  • Field Details

    • INSTANCE

      public static final MetadataPropagatorSetter INSTANCE
      Shared singleton instance used by the Micrometer binding.
  • Method Details