Monitor your agents
Astro automatically monitors agents that interact with common AI model providers. After deploying an agent on Astro, you can monitor your agents using the insights page. For enhanced observability, Astro provides adapters for common frameworks.
Framework guides
Manually attaching observability
When an adapter isn’t available for your framework of choice, you may manually instrument an agent 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
Install the OpenTelemetry SDK and the OTLP HTTP trace exporter:
Initialize the SDK at the entry point of your agent, before any other imports that you want traced:
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.