Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 588 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 588 Bytes

Tracing

Installation

implementation("io.github.turchenkoalex:kotlet-tracing:1.0.0")

Configuration

Use the installTracing method to add tracing to your routes. The method takes a OpenTelemetry object as a parameter.

Kotlet.routing {
    installTracing(GlobalOpenTelemetry.get())
    get("/hello") { call ->
        call.respondText("Hello, World!")
    }
}

After that the extension will automatically create spans for each request and send them to the library.

Important

You must configure OpenTelemetry before using this extension.