11# Library Instrumentation for Ktor version 3.0 and higher
22
3- This package contains libraries to help instrument Ktor. Server and client instrumentations are supported.
3+ This package contains libraries to help instrument Ktor. Server and client instrumentations are
4+ supported.
45
56## Quickstart
67
@@ -12,6 +13,7 @@ release](https://search.maven.org/search?q=g:io.opentelemetry.instrumentation%20
1213For Maven, add to your ` pom.xml ` dependencies:
1314
1415``` xml
16+
1517<dependencies >
1618 <dependency >
1719 <groupId >io.opentelemetry.instrumentation</groupId >
@@ -31,29 +33,31 @@ implementation("io.opentelemetry.instrumentation:opentelemetry-ktor-3.0:OPENTELE
3133
3234## Initializing server instrumentation
3335
34- Initialize instrumentation by installing the ` KtorServerTracing ` feature. You must set the ` OpenTelemetry ` to use with
36+ Initialize instrumentation by installing the ` KtorServerTelemetry ` feature. You must set the
37+ ` OpenTelemetry ` to use with
3538the feature.
3639
3740``` kotlin
3841val openTelemetry: OpenTelemetry = .. .
3942
4043embeddedServer(Netty , 8080 ) {
41- install(KtorServerTracing ) {
44+ install(KtorServerTelemetry ) {
4245 setOpenTelemetry(openTelemetry)
4346 }
4447}
4548```
4649
4750## Initializing client instrumentation
4851
49- Initialize instrumentation by installing the ` KtorClientTracing ` feature. You must set the ` OpenTelemetry ` to use with
52+ Initialize instrumentation by installing the ` KtorClientTelemetry ` feature. You must set the
53+ ` OpenTelemetry ` to use with
5054the feature.
5155
5256``` kotlin
5357val openTelemetry: OpenTelemetry = .. .
5458
5559val client = HttpClient {
56- install(KtorClientTracing ) {
60+ install(KtorClientTelemetry ) {
5761 setOpenTelemetry(openTelemetry)
5862 }
5963}
0 commit comments