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
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RestRequestTextMapGetterProcess-wide singleton instance. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.opentelemetry.context.propagation.TextMapGetter
getAll
-
Field Details
-
INSTANCE
Process-wide singleton instance.
-
-
Method Details
-
keys
- Specified by:
keysin interfaceio.opentelemetry.context.propagation.TextMapGetter<RestRequest>
-
get
- Specified by:
getin interfaceio.opentelemetry.context.propagation.TextMapGetter<RestRequest>
-