# Tracer

interface Tracer

A Tracer is used to create SpanBuilders for telemetry spans.

## Functions

contextWithSpan
Link copied to clipboard
abstract fun contextWithSpan(span: Span): TelemetryContext

Returns a context configured with the given span.

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

Returns the current telemetry context.

spanBuilder
Link copied to clipboard
abstract fun spanBuilder(spanName: String): SpanBuilder

Returns a SpanBuilder to configure and start a new Span.