opentelemetry-java-instrume.../instrumentation/ktor/ktor-2.0/library
Mateusz Rzeszutek b2c90c79b5
Extract HTTP request & response content length from headers (#6415)
* Extract HTTP request & response content length from headers

* remove unused method

* fix camel tests

* fix google http client tests

* fix HttpUrlConnection tests

* fix k8s and jaxrs tests

* fix aws tests

* actually fix aws tests 🤞

* fix elasticsearch tests

* fix ratpack tests

* fix spring webflux tests

* fix vertx tests

* fix reactor netty tests
2022-08-05 10:55:47 -07:00
..
src Extract HTTP request & response content length from headers (#6415) 2022-08-05 10:55:47 -07:00
README.md Add library instrumentation for ktor 2 (#5797) 2022-04-11 13:05:00 +03:00
build.gradle.kts Add library instrumentation for ktor 2 (#5797) 2022-04-11 13:05:00 +03: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)
  }
}