trace

inline fun <T> Trace.trace(block: Trace.() -> T): T(source)

Runs block between Trace.start and Trace.stop of this trace and returns its result.


inline fun <T> trace(name: String, block: Trace.() -> T): T(source)

Creates a trace named name, runs block between its start and stop and returns the result.

inline fun HttpMetric.trace(block: HttpMetric.() -> Unit)(source)

Runs block between HttpMetric.start and HttpMetric.stop of this metric.