# Telemetry

object Telemetry

Global entry point for the Telemetry abstraction.

## Properties

tracer
Link copied to clipboard
val tracer: Tracer

The active Tracer. Defaults to the platform implementation. On JVM tests, this can be safely overridden per-thread using setTracerForTest.

## Functions

currentContext
Link copied to clipboard
suspend fun currentContext(): TelemetryContext

Delegates entirely to configured tracer

resetTracer
Link copied to clipboard
fun resetTracer()

Resets the test tracer to restore the default tracer.

setTracerForTest
Link copied to clipboard
fun setTracerForTest(tracer: Tracer)

Safely sets a custom tracer for testing.