setAttribute

abstract fun setAttribute(key: String, value: String): SpanBuilder

Set a string attribute on the span.


abstract fun setAttribute(key: String, value: Long): SpanBuilder

Set a long attribute on the span.


abstract fun setAttribute(key: String, value: Double): SpanBuilder

Set a double attribute on the span.


abstract fun setAttribute(key: String, value: Boolean): SpanBuilder

Set a boolean attribute on the span.