span

inline fun <T> span(name: String, f: TracingEvent.Span.Local.() -> T): T

Executes a function within the scope of a tracing span.

Return

The result produced by the function f.

Parameters

T

The type of the result produced by the function.

name

The name of the span.

f

A function to be executed within the span context.