Class OpenTelemetryHttpRequestFilter

java.lang.Object
io.servicetalk.opentelemetry.http.OpenTelemetryHttpRequestFilter
All Implemented Interfaces:
HttpExecutionStrategyInfluencer, StreamingHttpClientFilterFactory, StreamingHttpConnectionFilterFactory, ExecutionStrategyInfluencer<HttpExecutionStrategy>

public final class OpenTelemetryHttpRequestFilter extends Object implements StreamingHttpClientFilterFactory, StreamingHttpConnectionFilterFactory
An HTTP filter that supports open telemetry.

The filter gets a Tracer with "io.servicetalk" instrumentation scope name.

Append this filter before others that are expected to see Scope for this request/response. Filters appended after this filter that use operators with the after* prefix on response meta data or the StreamingHttpResponse.transformMessageBody(UnaryOperator) response message body} (e.g. Publisher.afterFinally(Runnable)) will execute after this filter invokes Scope.close() and therefore will not see the Span for the current request/response.