Class ReactorBaggage

java.lang.Object
io.micrometer.tracing.contextpropagation.reactor.ReactorBaggage

public final class ReactorBaggage extends Object
Helper class to work with Reactor Context and BaggageToPropagate.
Since:
1.2.2
  • Method Details

    • append

      public static Function<reactor.util.context.Context,reactor.util.context.Context> append(String key, String value)
      Appends a single baggage entry to the existing Function.
      Parameters:
      key - baggage key
      value - baggage value
      Returns:
      function transforming Context to append the baggage entry to the existing baggage
    • append

      public static Function<reactor.util.context.Context,reactor.util.context.Context> append(Map<String,String> baggage)
      Appends baggage entries to the existing Function.
      Parameters:
      baggage - baggage entries
      Returns:
      function transforming Context to append the baggage entries to the existing baggage