Skip to main content

Mastra.getTelemetry()

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

Usage example
Direct link to Usage example

mastra.getTelemetry()

Parameters
Direct link to Parameters

This method doesn't accept any parameters.

Returns
Direct 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