OpenTelemetryInterceptorFactory
OpenTelemetry interceptor factory for Java handlers. Implements both and RunInterceptor.Factory so a single registration covers both invocation- and run-level spans.
- Per invocation: opens an
attempt <target>span (server kind) withrestate.invocation.idandrestate.invocation.targetattributes. The parent span context is extracted from the incoming request headers via the configured . - Per
ctx.run(name, ...)call: opens arun (<name>)child span with therestate.run.nameattribute.
Scopes are thread-local. Use with OpenTelemetryRunContextPropagator (registered via SPI by default) to propagate spans to run closures.