Skip to main content

Mastra.getTelemetry()

.getTelemetry() 方法用于检索已在 Mastra 实例中配置的遥测实例。

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

使用示例
Direct link to 使用示例

🌐 Usage example

mastra.getTelemetry();

参数
Direct link to 参数

🌐 Parameters

此方法不接受任何参数。

🌐 This method does not accept any parameters.

返回
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.

🌐 Related