Getting "Mastra telemetry is deprecated" when telemetry is not enabled.
Telemetry
Getting this consistently in the terminal, not sure why:
WARN [2025-11-26 18:17:16.556 +0000] (Mastra): If you are using a custom instrumentation file or want to disable this warning, set the globalThis._MASTRATELEMETRY variable to true in your instrumentation file. WARN [2025-11-26 18:17:16.562 +0000] (Mastra): Mastra telemetry is deprecated and will be removed on the Nov 4th release. Instead use AI Tracing. More info can be found here: https://github.com/mastra-ai/mastra/issues/8577 and here: https://mastra.ai/en/docs/observability/ai-tracing/overview
I may have had the old telemetry enabled before, but now my mastra config looks like this:
export const mastra = new Mastra({ workflows: { ... }, agents: { ... }, storage: new PostgresStore({ connectionString: process.env.DATABASE_URL!, schemaName: 'mastra', }), logger: new PinoLogger({ name: 'Mastra', level: 'info', }), observability: { configs: { default: { serviceName: "...", exporters: [ new LangSmithExporter({ apiKey: process.env.LANGSMITH_API_KEY!, apiUrl: process.env.LANGSMITH_ENDPOINT!, }), new CloudExporter(), // new DefaultExporter(), ], }, }, },});
export const mastra = new Mastra({ workflows: { ... }, agents: { ... }, storage: new PostgresStore({ connectionString: process.env.DATABASE_URL!, schemaName: 'mastra', }), logger: new PinoLogger({ name: 'Mastra', level: 'info', }), observability: { configs: { default: { serviceName: "...", exporters: [ new LangSmithExporter({ apiKey: process.env.LANGSMITH_API_KEY!, apiUrl: process.env.LANGSMITH_ENDPOINT!, }), new CloudExporter(), // new DefaultExporter(), ], }, }, },});
Is the error just sent regardless of if I'm using old telemetry config? Will silence it using the instructions in the error for now.
Summary Deprecate the legacy OpenTelemetry-based telemetry system (packages/core/src/telemetry) in favor of the new AI Tracing system (packages/core/src/ai-tracing). The new system provides special...