Interface InMemorySpanContextExtractor<C>

Type Parameters:
C - the carrier type.
All Known Subinterfaces:
InMemorySpanContextFormat<C>
All Known Implementing Classes:
B3KeyValueFormatter, SingleLineFormatter

public interface InMemorySpanContextExtractor<C>
Used to extract InMemorySpanContext from a carrier of type InMemorySpanContextExtractor.
  • Method Summary

    Modifier and Type
    Method
    Description
    extract(C carrier)
    Extract the trace state from a carrier.
  • Method Details

    • extract

      @Nullable InMemorySpanContext extract(C carrier) throws Exception
      Extract the trace state from a carrier.
      Parameters:
      carrier - carrier to extract from
      Returns:
      extracted InMemorySpanContext, may be null if the carrier doesn't contain a valid span
      Throws:
      Exception - if any parsing error happened during extraction