opentelemetry-java-instrume.../instrumentation/ktor/ktor-1.0/library
Mateusz Rzeszutek 714ba9189e
Remove deprecated `http.host` and `http.server_name` attributes (#6709)
... and make sure the `TemporaryMetricsView` follows the current spec
2022-09-24 11:02:21 -07:00
..
src Remove deprecated `http.host` and `http.server_name` attributes (#6709) 2022-09-24 11:02:21 -07:00
README.md Add library instrumentation for ktor 2 (#5797) 2022-04-11 13:05:00 +03:00
build.gradle.kts Document upper version limits (#6436) 2022-08-08 10:08:40 -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)
  }
}