set

abstract operator fun <T : Any> set(key: AttributeKey<T>, value: T)

Set an attribute on the span

Parameters

key

the attribute key to use

value

the value to associate with the key