Mastra
Instrument AI agents and workflows built with Mastra's TypeScript framework
Last updated
Was this helpful?
Instrument AI agents and workflows built with Mastra's TypeScript framework
Last updated
Was this helpful?
Mastra is an open-source TypeScript agent framework designed to provide the primitives you need to build AI applications and features. With Mastra, you can build AI agents with memory, function execution capabilities, and chain LLM calls in deterministic workflows.
If you haven't already, create a project with Mastra:
Add your Arize Space ID and API Key, as well as any model API keys you're using:
Configure Mastra with telemetry settings to send traces directly to Arize:
Mastra's comprehensive tracing captures:
Agent Operations: All agent generation, streaming, and interaction calls
LLM Interactions: Complete model calls with input/output messages and metadata
Tool Executions: Function calls made by agents with parameters and results
Workflow Runs: Step-by-step workflow execution with timing and dependencies
Memory Operations: Agent memory queries, updates, and retrieval operations
All traces follow OpenTelemetry standards and include relevant metadata such as model parameters, token usage, execution timing, and error details.
Install the