GenAIAgentSpan

A GenAI agent span emitted by the OpenTelemetry feature.

Properties

Link copied to clipboard

Attributes attached to this span.

Link copied to clipboard
val id: String

Stable identifier within the agent run.

Link copied to clipboard
val kind: SpanKind

OpenTelemetry SpanKind.

Link copied to clipboard

Human-readable span name.

Link copied to clipboard

Span category tag.

Functions

Link copied to clipboard
fun addAttribute(attribute: Attribute)

Adds attribute to the span. Existing attribute with the same key is replaced.

Link copied to clipboard
fun addAttributes(attributes: List<Attribute>)

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

Replaces every attribute of type TAttribute on this span with the result of processAttributeAction. No-op if none are present.