Class BaggageToPropagate

java.lang.Object
io.micrometer.tracing.contextpropagation.BaggageToPropagate

public class BaggageToPropagate extends Object
Wrapper around baggage to propagate.
Since:
1.2.2
  • Constructor Details

    • BaggageToPropagate

      public BaggageToPropagate(Map<String,String> baggage)
      Creates a new instance of BaggageToPropagate with this baggage.
      Parameters:
      baggage - baggage entries
    • BaggageToPropagate

      public BaggageToPropagate(String... baggage)
      Creates a new instance of BaggageToPropagate with a single baggage entry.
      Parameters:
      baggage - array of baggage key, value pairs (e.g. "foo", "foo1", "foo2", "foo3" will result in baggage foo:foo1, foo2:foo3
  • Method Details