GenAIAgentSpan
A GenAI agent span emitted by the OpenTelemetry feature.
Functions
Link copied to clipboard
Adds attribute to the span. Existing attribute with the same key is replaced.
Link copied to clipboard
Adds all attributes to the span.
Link copied to clipboard
Removes attribute from the span. Returns true if it was present.
Link copied to clipboard
inline fun <TAttribute : Attribute> GenAIAgentSpan.replaceAttributes(processAttributeAction: GenAIAgentSpan.(TAttribute) -> Attribute)
Replaces every attribute of type TAttribute on this span with the result of processAttributeAction. No-op if none are present.