Interface InMemoryTraceStateFormat<C>

  • Type Parameters:
    C - the carrier type.
    All Superinterfaces:
    io.opentracing.propagation.Format<C>
    All Known Implementing Classes:
    SingleLineFormatter

    public interface InMemoryTraceStateFormat<C>
    extends io.opentracing.propagation.Format<C>
    A Format compatible with InMemoryTraceState.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.opentracing.propagation.Format

        io.opentracing.propagation.Format.Builtin<C extends java.lang.Object>
    • Method Detail

      • inject

        void inject​(InMemoryTraceState state,
                    C carrier)
        Inject a trace state into a carrier.
        Parameters:
        state - trace state
        carrier - carrier to inject into
      • extract

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