opentelemetry-java-instrume.../instrumentation/ktor-1.0/library
Anuraag Agrawal a1e45a5abc
Migrate kotlin coroutine tests to kotlin (#5622)
* Migrate kotlin coroutine tests to kotlin

* wait longer
2022-03-18 10:41:02 -07:00
..
src Remove deprecated methods from instrumentation-api and library instrumentations (#5575) 2022-03-15 09:33:48 +09:00
README.md Add library instrumentation for ktor. (#4983) 2022-01-04 20:14:31 -08:00
build.gradle.kts Migrate kotlin coroutine tests to kotlin (#5622) 2022-03-18 10:41:02 -07:00

README.md

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.

OpenTelemetry openTelemetry = initializeOpenTelemetryForMe()

embeddedServer(Netty, 8080) {
  install(KtorServerTracing) {
    setOpenTelemetry(openTelemetry)
  }
}