main.wisp.tracing.Baggage.kt Maven / Gradle / Ivy
package wisp.tracing
import io.opentracing.Span
/**
* Conveniently sets baggage items all at once. Baggage values come from [Any.toString].
*/
fun Span.setBaggageItems(baggage: Map) {
for ((key, value) in baggage) {
setBaggageItem(key, value.toString())
}
}