UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

25 lines (24 loc) • 1.08 kB
import { type Telemetry } from "ai"; /** * Registers the AI SDK OpenTelemetry integration once so that model * calls emit OTel spans, including runtime-context attributes. Safe to * call multiple times — only the first call has an effect. * * In AI SDK v7 the built-in OTel tracing was moved to `@ai-sdk/otel` * and must be registered explicitly. */ export declare function ensureOtelIntegration(): void; /** * Every integration currently registered with the AI SDK — eve's own, plus any * an authored instrumentation module added with `registerTelemetry`. * * A per-call `integrations` list replaces the registered ones rather than * adding to them, so anything that passes integrations per call has to carry * these forward or they stop receiving events. */ export declare function getRegisteredTelemetryIntegrations(options?: { readonly excludeEveOtelIntegration?: boolean; readonly sanitizeEveOtelErrors?: boolean; }): readonly Telemetry[]; /** @internal */ export declare function telemetryWithoutErrorContent(integration: Telemetry): Telemetry;