Interface TracerContextStorage<K,V>

Type Parameters:
K - key type
V - value type

@InternalApi public interface TracerContextStorage<K,V>
Storage interface used for storing tracing context
Opensearch.internal:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Key for storing current span
  • Method Summary

    Modifier and Type
    Method
    Description
    get(K key)
    Fetches value corresponding to key
    void
    put(K key, V value)
    Puts tracing context value with key
  • Field Details

  • Method Details

    • get

      V get(K key)
      Fetches value corresponding to key
      Parameters:
      key - of the tracing context
      Returns:
      value for key
    • put

      void put(K key, V value)
      Puts tracing context value with key
      Parameters:
      key - of the tracing context
      value - of the tracing context