All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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())
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy