AbstractOptional ReadonlydescriptionShort description of what this provider offers.
Optional ReadonlydisplayHuman-readable name shown when choosing between providers.
ReadonlyidUniquely identifies this instance, even when multiple providers of the same type are used.
Protected AbstractaddProtected AbstractaddFinalizes a trace as error when execution fails before any span is
produced (e.g. a bad model id throws before onStart).
AbstractgetReturns compact summaries for every trace known to this provider, newest first. Used to populate the Traces sidebar.
Returns the trace with the given ID together with all of its spans, or
undefined when the trace is unknown.
Protected AbstractgetProtected AbstractgetAbstracthasSubscribes to real-time updates for a specific trace. The callback is invoked for every Span change on this trace, for as long as the returned cleanup function has not been called.
Optional — providers that cannot track live changes may omit it.
A no-argument function that cancels the subscription.
Registers a callback invoked whenever a trace is added, updated, or removed. Used by the sidebar to stay in sync without polling.
Optional — providers that cannot detect live changes may omit it.
A no-argument function that unregisters the watcher.
Source-agnostic base class for a TraceProvider. Owns storage delegation, subscriptions, watchers, and the generic trace lifecycle that every concrete provider shares, regardless of how spans are produced.
Subclasses implement the abstract storage hooks; ingestion is handled by one or more TraceIngestors that call recordSpanStart / recordSpanEnd / failTrace on this instance (via TraceSink).