traceWithSpan

fun <T> Tracer.traceWithSpan(spanName: String, tags: Map<String, String> = mapOf(), f: (Span) -> T): T

Like trace, but exposes the new active Span to f.