Skip to content

Commit

Permalink
Add clearer docs around coroutine support with an example (#5799)
Browse files Browse the repository at this point in the history
  • Loading branch information
scprek authored Sep 28, 2023
1 parent 8d27e24 commit 15fbac5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions extensions/kotlin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# OpenTelemetry Kotlin Extension

Kotlin [Extensions](src/main/kotlin/io/opentelemetry/extension/kotlin/ContextExtensions.kt) to propagate
OpenTelemetry context into coroutines.

For example, you could do the following with coroutines

```kotlin
launch(Context.current().asContextElement()) {
// trace ids propagated here
}
```

0 comments on commit 15fbac5

Please sign in to comment.