@traceroot-ai/mastra exporter package. This integrates with Mastra’s built-in OpenTelemetry observability system.
Setup
Install the exporter alongside your Mastra dependencies:Usage
Once configured, all agent calls are traced automatically:What Gets Captured
| Attribute | Description |
|---|---|
| Agent name | The Mastra agent ID |
| Model | Underlying LLM model name |
| Messages | Input messages and conversation history |
| Response | Generated text output |
| Tool calls | Each tool invocation with input and output |
| Tokens | Input and output token counts |
| Cost | Calculated from token usage and model pricing |
| Latency | Request duration per span |