Monitor your agents
Astro AI automatically monitors agents that interact with common AI model providers. After you deploy an agent, its token usage, tool calls, and latency appear on the Insights page. For deeper observability, Astro AI provides adapters for common frameworks.
Framework guides
Send Vercel AI SDK telemetry to the dashboard.
Instrument Mastra agents automatically.
Instrument the Claude Agent SDK with a drop-in package.
Manually attaching observability
When an adapter isn’t available for your framework, you can instrument an agent manually using standard OpenTelemetry. Every deployed agent container receives these environment variables automatically:
OTEL_EXPORTER_OTLP_ENDPOINT is unset during local development. Guard your instrumentation on the variable so the agent runs cleanly in both environments.
Node.js
Initialize the SDK
Initialize the SDK at the entry point of your agent, before any other imports that you want traced:
Emit spans
With the SDK running, emit spans wherever you want them — see the OpenTelemetry tracing API for the span API and the auto-instrumentation packages for HTTP, fetch, and other off-the-shelf coverage.