Interface TracingContextPropagator


@ExperimentalApi public interface TracingContextPropagator
Interface defining the tracing related context propagation
Opensearch.experimental:
  • Method Details

    • extract

      Optional<Span> extract(Map<String,String> props)
      Extracts current span from context
      Parameters:
      props - properties
      Returns:
      current span
    • extractFromHeaders

      Optional<Span> extractFromHeaders(Map<String, Collection<String>> headers)
      Extracts current span from HTTP headers.
      Parameters:
      headers - request headers to extract the context from
      Returns:
      current span
    • inject

      void inject(Span currentSpan, BiConsumer<String,String> setter)
      Injects tracing context
      Parameters:
      currentSpan - the current active span
      setter - to add tracing context in map