Mateusz Rzeszutek cfdbe758f2 Net attributes getters changes (in preparation for HTTP spec impl) (#6503) преди 2 години
..
src cfdbe758f2 Net attributes getters changes (in preparation for HTTP spec impl) (#6503) преди 2 години
README.md 91066a8073 Add library instrumentation for ktor 2 (#5797) преди 2 години
build.gradle.kts 91066a8073 Add library instrumentation for ktor 2 (#5797) преди 2 години

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)
  }
}