Meta tags:
description= Send OpenTelemetry traces from your agent to see token usage, tool calls, and latency in the Astro dashboard;
Headings (most frequently used words):
monitor, your, agents, framework, guides, manually, attaching, observability, node, js, knowledge, stores, ai, sdk,
Text of the page (most frequently used words):
your (19), the (18), agent (17), opentelemetry (14), sdk (11), for (9), #agents (9), with (7), from (7), page (6), node (6), first (6), knowledge (5), stores (5), http (5), #manually (5), astro (5), monitor (5), 2026 (4), you (4), api (4), and (4), traces (4), otel_exporter_otlp_endpoint (4), env (4), process (4), import (4), otlp (4), using (4), card (4), spec (4), managing (4), cli (4), service (3), url (3), exporter (3), trace (3), any (3), install (3), adapter (3), framework (3), observability (3), mastra (3), guides (3), changelog (3), overview (3), reference (3), this (2), want (2), see (2), other (2), instrumentation (2), otlptraceexporter (2), new (2), astro_agent_build (2), attr_service_version (2), astro_agent_name (2), attr_service_name (2), resourcefromattributes (2), nodesdk (2), semantic (2), conventions (2), resources (2), that (2), variable (2), use (2), version (2), append (2), available (2), may (2), automatically (2), attaching (2), claude (2), common (2), adapters (2), frameworks (2), markdown (2), ask (2), website (2), join (2), discord (2), june (2), allowlist (2), egress (2), ips (2), known (2), integrations (2), astropods (2), custom (2), python (2), authorize (2), requests (2), connect (2), oauth (2), protected (2), mcp (2), servers (2), serve (2), frontend (2), store (2), data (2), sqlite (2), gateway (2), secrets (2), working (2), accounts (2), authentication (2), deploy (2), blueprint (2), project (2), welcome (2), docs (2), documentation (2), index (2), level (2), llms (2), txt (2), postman, all, rights, reserved, cookie, preferences, not, sell, share, personal, information, privacy, policy, terms, built, next, previous, yes, was, helpful, running, emit, spans, wherever, them, span, fetch, off, shelf, coverage, auto, packages, tracing, start, traceexporter, dev, resource, initialize, entry, point, before, imports, traced, add, bun, unset, during, local, development, guard, runs, cleanly, both, environments, name, base, signal, purpose, when, isn, choice, instrument, standard, every, deployed, container, receives, these, environment, variables, monitors, interact, model, providers, after, deploying, can, enhanced, provides, insights, more, actions, view, copy, question, send, token, usage, tool, calls, latency, dashboard, scroll, top, light, langchain, messaging, platform, get, started, search, root,
Text of the page (random words):
monitor your agents astro ai documentation for ai agents a documentation index is available at the root level at llms txt append llms txt to any url for a page level index or md for the markdown version of any page search ask ai join discord website docs cli api reference docs cli api reference get started welcome install the cli your first project your first blueprint deploy your first agent managing your agents authentication platform working with accounts managing secrets ai gateway agent card knowledge stores monitor your agents overview frameworks guides using knowledge stores store data with sqlite serve a frontend from your agent connect to oauth protected mcp servers manually authorize requests messaging sdk adapters reference astropods spec agent card spec known integrations allowlist egress ips changelog changelog welcome install the cli your first project your first blueprint deploy your first agent managing your agents authentication working with accounts managing secrets ai gateway agent card knowledge stores overview ai sdk mastra claude agent sdk using knowledge stores store data with sqlite serve a frontend from your agent connect to oauth protected mcp servers manually authorize requests node python overview mastra langchain custom adapter node custom adapter python astropods spec agent card spec known integrations allowlist egress ips changelog june 23 2026 june 10 2026 may 28 2026 join discord website light on this page framework guides manually attaching observability node js scroll to top monitor your agents monitor your agents send opentelemetry traces from your agent to see token usage tool calls and latency in the astro dashboard ask a question copy page view as markdown more actions 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 ai sdk mastra claude agent sdk 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 variable purpose otel_exporter_otlp_endpoint otlp http base url append v1 traces for the traces signal astro_agent_name use as opentelemetry service name astro_agent_build use as opentelemetry service version 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 bun add opentelemetry sdk node opentelemetry exporter trace otlp http opentelemetry resources opentelemetry semantic conventions initialize the sdk at the entry point of your agent before any other imports that you want traced 1 import nodesdk from opentelemetry sdk node 2 import otlptraceexporter from opentelemetry exporter trace otlp http 3 import resourcefromattributes from opentelemetry resources 4 import 5 attr_service_name 6 attr_service_version 7 from opentelemetry semantic conventions 8 9 if process env otel_exporter_otlp_endpoint 10 new nodesdk 11 resource resourcefromattributes 12 attr_service_name process env astro_agent_name agent 13 attr_service_version process env astro_agent_build dev 14 15 traceexporter new otlptraceexporter 16 url process env otel_exporter_otlp_endpoint v1 traces 17 18 start 19 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 was this page helpful yes no previous knowledge stores next ai sdk built with terms of service privacy policy do not sell or share my personal information cookie preferences 2026 postman all rights reserved
|