setSpanAttribute

fun <T> setSpanAttribute(key: SpanAttributeKey<T>, value: T)

Sets a character span attribute for the given key with the specified value.