Package-level declarations
Functions
Link copied to clipboard
Conveniently sets baggage items all at once. Baggage values come from Any.toString.
Link copied to clipboard
Conveniently set tags all at once.
Link copied to clipboard
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.
Link copied to clipboard
Instruments a function f with a new scope. This is helpful if you need to create a new Scope for an existing Span, for example, if you are switching threads (since Scopes are not thread-safe).