replaceAttributes
inline fun <TAttribute : Attribute> GenAIAgentSpan.replaceAttributes(processAttributeAction: GenAIAgentSpan.(TAttribute) -> Attribute)(source)
Replaces every attribute of type TAttribute on this span with the result of processAttributeAction. No-op if none are present.
Parameters
processAttributeAction
Maps an existing attribute to its replacement.