traceWithNewRootSpan

fun <T> Tracer.traceWithNewRootSpan(spanName: String, tags: Map<String, String> = mapOf(), retainBaggage: Boolean = false, f: (Span) -> T): T

Like traceWithSpan, but always starts a new independent (root) span. If you'd like to continue propagating baggage that was set on the previous active span, set retainBaggage to true.