UNPKG

eve

Version:

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

29 lines (28 loc) • 1.82 kB
/** * The OpenTelemetry authoring surface for `agent/instrumentation/`. * * Two halves, because OpenTelemetry has two: `otel()` is the settings a process * can only hold one of, and an integration is a destination, of which there may * be as many as there are files. * * Reachable only with `experimental.instrumentationProviders` on. With the flag * off nothing discovers that directory, so these compile but never run. */ import { type ManagedTraceOptions, type OtelIntegration } from "#tracing/otel-declaration.js"; export { isOtelDeclaration, isOtelIntegration, otel, otelIntegration, composeSpanExportPolicies, redactSpanInputs, redactSpanOutputs, type ContentOptions, type OtelDeclaration, type OtelIntegration, type OtelIntegrationOptions, type OtelOptions, type ManagedTraceOptions, type SpanAttributeDecision, type SpanExportAttributeValue, type SpanExportContext, type SpanExportPolicy, type SpanExportPredicate, type TraceCaptureContext, type TraceCapturePolicy, type TracePolicyDecision, } from "#tracing/otel-declaration.js"; export type { SpanExporter, SpanProcessor } from "#compiled/@vercel/otel/index.js"; /** * Vercel Agent Runs, enabled by default in preview and production deployments. * * Export it from `agent/instrumentation/agent-runs.ts` to configure export, or * export `disableInstrumentation()` from that file to turn it off. */ export declare function agentRuns(options?: ManagedTraceOptions): OtelIntegration; /** * The local trace spool `eve dev` reads, as a destination. * * Export it from `agent/instrumentation/local.ts` to keep it alongside a hosted * backend, or export `disableInstrumentation()` from that file to turn it off. * Omitting the file leaves eve's default in place. */ export declare function localTraces(options?: ManagedTraceOptions): OtelIntegration;