Skip to main content
Mastra v1 is coming in January 2026. Get ahead by starting new projects with the beta or upgrade your existing project today.

Mastra.getTelemetry()

The .getTelemetry() method is used to retrieve the telemetry instance that has been configured in the Mastra instance.

Usage exampleDirect link to Usage example

mastra.getTelemetry();

ParametersDirect link to Parameters

This method does not accept any parameters.

ReturnsDirect link to Returns

telemetry:

Telemetry | undefined
The configured telemetry instance used for tracing and observability across all components, or undefined if no telemetry has been configured.

On this page