Set up Respan
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
What is Mastra?
Mastra is a TypeScript framework for building AI agents and workflows. This guide shows how to set up Respan tracing with Mastra to monitor your AI-powered applications.Setup
Configure Mastra with Respan telemetry
In your Mastra config (e.g.
src/mastra/index.ts), set the telemetry export to use the Respan exporter:src/mastra/index.ts
View your trace
Open the Traces page in the Respan dashboard.
Observability
With this integration, Respan auto-captures:- Agent runs — each agent execution as a span
- LLM calls — model, input/output messages, token usage
- Performance metrics — latency per step
- Errors — failed runs and error details