OpenTelemetryInterceptorFactory

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.

Constructors

Link copied to clipboard
constructor(openTelemetry: OpenTelemetry)

Functions

Link copied to clipboard
Link copied to clipboard
open override fun createRunInterceptor(): RunInterceptor?