Package-level declarations

Functions

Link copied to clipboard
inline fun <T> withSpan(name: String, attributes: Map<String, Any?> = emptyMap(), block: (Span) -> T): T

Executes the given block within a manually created tracing span.

Link copied to clipboard
expect inline fun <T> withTrace(function: KFunction<*>, args: Array<Any?>, traceAnnotation: Trace, crossinline block: () -> T): T

Executes the given block within a tracing span.

Link copied to clipboard
expect inline suspend fun <T> withTraceSuspended(function: KFunction<*>, args: Array<Any?>, traceAnnotation: Trace, crossinline block: suspend () -> T): T

Executes the given suspend block within a tracing span.