setAttribute

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

Set a string attribute on this span.

Return

This span for chaining

Parameters

key

Attribute key (should follow semantic conventions)

value

Attribute value


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

Set a long attribute on this span.


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

Set a double attribute on this span.


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

Set a boolean attribute on this span.