currentSpanContext

fun currentSpanContext(coroutineContext: CoroutineContext? = null): Context(source)

Returns the active OpenTelemetry Context from the given CoroutineContext. Falls back to Context.current when no trace context is attached or when the resolved context is root.