Skip to content

Commit

Permalink
Viderefør opentelemetry span (#2788)
Browse files Browse the repository at this point in the history
  • Loading branch information
tendestad authored Dec 11, 2024
1 parent 28a156b commit 89cc567
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal class RequestContextService(

internal suspend fun <T> withRequestContext(call: ApplicationCall, block: suspend CoroutineScope.() -> T) =
withContext(
context = if (profile == KoinProfile.PROD) establish(call) else (establish(call) + Span.current().asContextElement()),
context = establish(call) + Span.current().asContextElement(),
block = block
)

Expand Down

0 comments on commit 89cc567

Please sign in to comment.