setAttribute

fun <T : Any> TraceSpan.setAttribute(key: String, value: T)

Set an attribute on the span using a string key

Parameters

key

the attribute key to use

value

the value to associate with the key