Interface HeaderConsumer

All Superinterfaces:
HeaderProvider

public interface HeaderConsumer extends HeaderProvider
API used to configure headers when propagating tracing information across service boundaries.
  • Method Details

    • create

      static HeaderConsumer create(Map<String,List<String>> headers)
      Create a header consumer over a map of headers (must be mutable).
      Parameters:
      headers - headers to update
      Returns:
      a new consumer
    • setIfAbsent

      void setIfAbsent(String key, String... values)
      Set the value(s) if not already set.
      Parameters:
      key - header name
      values - header value(s)
    • set

      void set(String key, String... values)
      Set the value(s).
      Parameters:
      key - header name
      values - header value(s)