Class RestRequestTextMapGetter

java.lang.Object
org.apache.juneau.rest.server.tracing.otel.RestRequestTextMapGetter
All Implemented Interfaces:
io.opentelemetry.context.propagation.TextMapGetter<RestRequest>

public final class RestRequestTextMapGetter extends Object implements io.opentelemetry.context.propagation.TextMapGetter<RestRequest>
TextMapGetter implementation that reads HTTP request headers from a RestRequest.

Used by OtelTracerHook to extract W3C traceparent / tracestate headers (and any other propagator-defined headers, e.g. baggage) from incoming requests so the server span can be created as a child of the caller's trace context.

Header lookups are case-insensitive at the underlying RequestHeaderList, matching the RFC 9110 contract.

Since:
10.0.0