OpenTelemetryInterceptorFactory
class OpenTelemetryInterceptorFactory(openTelemetry: OpenTelemetry) : HandlerInterceptor.Factory, RunInterceptor.Factory
Coroutine-safe OpenTelemetry interceptor factory for Kotlin handlers. Implements both HandlerInterceptor.Factory and RunInterceptor.Factory so a single registration covers both invocation- and run-level spans.
The OTEL context is installed as a kotlin.coroutines.CoroutineContext element via withContext(...) so it propagates across coroutine suspensions.