Choose the terminal middleware boundary
Record requests after the final status and duration are known, and record jobs after the worker knows whether work completed, retried, or failed.
Instrument Node.js frameworks, edge runtimes, queues, database clients, loggers, webhooks, and AI applications with server-side events.
Reviewed by the Telemetry product team on . Runtime boundaries, shared event fields, verification workflow, and upstream implementation sources. Review standards and ownership
21 implementation guides
Every guide includes a server-side snippet, delivery and privacy boundaries, a verification query, related SQL, and links to upstream documentation.
Browse guidesSelection framework
Record requests after the final status and duration are known, and record jobs after the worker knows whether work completed, retried, or failed.
Initialize one shared client in server code. Browser and edge collection should pass through an application-owned allowlist.
Use route templates, named operations, queue names, and error categories instead of URLs, request bodies, SQL text, or exception dumps.
Shared event contract
Adapt these fields to the workflow, but keep units, status categories, identifiers, and ownership explicit before several services depend on the same table.
Verification
Implementation guides
Instrument Express route outcomes with stable route templates, status codes, request latency, and safe correlation fields.
Open guideSend SQL-ready events from Next.js route handlers and server actions without exposing an ingestion key to the browser.
Open guideInstrument NestJS controllers and providers with normalized route outcomes, latency, errors, releases, and approved account context.
Open guideLog edge request status, latency, provider failures, cron runs, and queue workers from Cloudflare Workers.
Open guideTrack Lambda invocations, cold starts, duration, retries, and business outcomes with compact structured events.
Open guideTrack Cloud Run request and job outcomes, cold-start context, instance concurrency, retries, latency, and releases with application-owned structured events.
Open guideTrack Azure Functions HTTP, timer, queue, and event-trigger outcomes with invocation, retry, latency, release, and customer-impact context.
Open guideInstrument async workers, scheduled jobs, retries, failures, and dead-letter events with SQL-ready logs.
Open guideMeasure BullMQ queue wait, execution duration, retries, failures, and dead-letter growth with SQL-ready lifecycle events.
Open guideTrack RabbitMQ publish confirmation, delivery, acknowledgement, redelivery, queue wait, retries, and dead-letter outcomes with structured events.
Open guideTrack Pub/Sub publish, delivery, acknowledgement, redelivery, ordering, queue age, and dead-letter outcomes with stable message identifiers.
Open guideTrack Azure Service Bus sends, receives, lock renewal, settlement, redelivery, deferral, and dead-letter outcomes without collecting message bodies.
Open guideDebug payment, subscription, invoice, retry, and downstream billing sync behavior without storing webhook bodies.
Open guideInstrument node-postgres query fingerprints, connection acquisition, pool pressure, timeouts, transaction outcomes, and database errors without logging SQL parameters.
Open guideMeasure Prisma operation fingerprints, model and method latency, failures, result counts, releases, and database-dependent workflows without collecting raw query parameters.
Open guideMeasure Redis command outcomes, latency, cache behavior, reconnects, and bounded error categories alongside node-redis.
Open guidePair Pino diagnostic logs with bounded Telemetry outcome events for Node.js request, job, and product reliability analysis.
Open guideConnect Winston application diagnostics to small SQL-ready request, workflow, and job outcomes without duplicating the entire log stream.
Open guideTrack streaming completions, token usage, retries, latency, and accepted results from AI SDK workflows.
Open guideMeasure OpenAI Responses API latency, token usage, tool activity, failures, and downstream outcomes without collecting prompts or generated content.
Open guideTrack Mastra agent and workflow outcomes, tool activity, latency, retries, cost, and product acceptance alongside built-in traces and evals.
Open guideCreate a free API key, choose the closest runtime guide, and send one known success and failure before expanding coverage.