ApiServerSpanExporter

Stores exported spans for the Development UI's trace views. It keeps the attributes of event spans (call_llm, send_data, tool spans) by gcp.vertex.agent.event_id, and each session's distinct trace ids, taken from any span that carries the session id.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun close()
Link copied to clipboard
open override fun export(spans: Collection<SpanData>): CompletableResultCode
Link copied to clipboard
open override fun flush(): CompletableResultCode
Link copied to clipboard

Returns a copy of the most recently exported spans, in export order.

Link copied to clipboard
Link copied to clipboard

A copy of each session's trace ids, safe to iterate while spans are exported.

Link copied to clipboard
open override fun shutdown(): CompletableResultCode