@mastra/core
Version:
27 lines • 1.51 kB
TypeScript
/**
* Mastra Observability
*
* Core observability utilities and types. To use observability, install
* @mastra/observability and pass an Observability instance to Mastra constructor.
*/
export * from './types/index.js';
export * from './no-op.js';
export * from './utils.js';
export * from './w3c.js';
export * from './span-record.js';
export { wrapMastra } from './context.js';
export { createObservabilityContext, resolveObservabilityContext } from './context-factory.js';
export { startRagIngestion, withRagIngestion } from './rag-ingestion.js';
export type { StartRagIngestionOptions, StartRagIngestionResult } from './rag-ingestion.js';
export { buildSpanPreviews } from './span-previews.js';
/** @internal Runtime instrumentation helper; not a public API. */
export { executionFailureTermination } from './execution-outcome.js';
/** @internal Runtime instrumentation helper; not a public API. */
export { agentLoopTermination } from '../loop/shared/execution-outcome.js';
/** @internal Bounded stop-reason context for runtime instrumentation. */
export { compactStopReasonContext } from './outcome-schema.js';
/** @internal Preserve observed model usage when an incomplete provider call ends a durable run. */
export { calculateObservedUsage, isUsageIncomplete } from './usage.js';
/** @internal Origin accounting shared with independently upgraded observability packages. */
export { claimSpanError, getSpanErrorOrigin, setSpanErrorOrigin } from './error-count.js';
//# sourceMappingURL=index.d.ts.map