Class TraceContextAttributes

java.lang.Object
org.mockserver.telemetry.TraceContextAttributes

public final class TraceContextAttributes extends Object
Shared Netty channel AttributeKey constants for W3C trace context. Lives in mockserver-core so both core (HttpActionHandler) and netty (TraceContextHandler) can reference the same key without creating a core-to-netty dependency.
  • Field Details

    • TRACE_CONTEXT

      public static final io.netty.util.AttributeKey<W3CTraceContext> TRACE_CONTEXT
      Channel attribute holding the parsed W3CTraceContext for the current inbound request. Set by the Netty pipeline's trace context handler; read by the action handler to attach a remote parent to request-level OpenTelemetry spans.