set
Sets a string attribute on the span.
Parameters
key
the attribute key.
value
the attribute value.
Sets a long attribute on the span.
Parameters
key
the attribute key.
value
the attribute value.
Sets a double attribute on the span.
Parameters
key
the attribute key.
value
the attribute value.
Sets a boolean attribute on the span.
Parameters
key
the attribute key.
value
the attribute value.
Sets a string-array attribute on the span (e.g. OTEL gen_ai.response.finish_reasons).
Parameters
key
the attribute key.
value
the attribute value.