opentelemetry-java-instrume.../instrumentation/ktor-1.0/library/README.md

19 lines
487 B
Markdown

# Ktor Instrumentation
This package contains libraries to help instrument Ktor. Currently, only server instrumentation is supported.
## Initializing server instrumentation
Initialize instrumentation by installing the `KtorServerTracing` feature. You must set the `OpenTelemetry` to use with
the feature.
```kotlin
OpenTelemetry openTelemetry = initializeOpenTelemetryForMe()
embeddedServer(Netty, 8080) {
install(KtorServerTracing) {
setOpenTelemetry(openTelemetry)
}
}
```