@mastra/core
Version:
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
22 lines (13 loc) • 636 B
Markdown
# Mastra.getTelemetry()
The `.getTelemetry()` method is used to retrieve the telemetry instance that has been configured in the Mastra instance.
## Usage example
```typescript
mastra.getTelemetry()
```
## Parameters
This method doesn't accept any parameters.
## 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
- [Tracing](https://mastra.ai/docs/observability/tracing/overview)
- [Observability Configuration](https://mastra.ai/reference/observability/tracing/configuration)