
LLM Trace Sampling: Diagnose Missing Runs
Agent runs or child spans missing from your traces? Learn how LLM trace sampling, parent-based decisions, tail sampling and exporters each drop data, and how to find which.
Guides from the telemetry.dev team on tracing and debugging AI agents in production.

Agent runs or child spans missing from your traces? Learn how LLM trace sampling, parent-based decisions, tail sampling and exporters each drop data, and how to find which.

Generative AI monitoring breaks at the queue. Learn to carry trace context from enqueue to worker, measure queue wait, and choose parent vs span links for retries.

LLM tracing breaks in async code when spans are created but never made active. Fix orphaned, flat and cross-request spans in JavaScript and Python, then assert it.

Prove your OpenTelemetry LLM observability setup works: send one synthetic model call and tool step through a Collector debug exporter, then confirm backend ingestion.

AI agent monitoring starts with run-level success rate and p50/p95 duration. Define success in your app, pick denominators, then drill into traces to find the slow step.

AI API middleware explained for small TypeScript and Python teams: how it differs from an AI gateway and an observability backend, and how to trace each boundary.

Agent telemetry for production AI agents: an OpenTelemetry span hierarchy that separates a failed attempt from a failed run, with a retry wrapper example.

AI cost observability for small teams: join reported token usage to traced calls and agent runs, and keep tokens, estimated cost and invoice as separate numbers.

LiteLLM tracing guide: propagate W3C traceparent so your app and LiteLLM proxy spans share one trace, then verify with trace IDs and parent span links.

OpenTelemetry GenAI prompt capture should be verified locally. Send synthetic prompts through a console exporter, read what lands on spans, and filter before export.

Claude Code token usage chart empty or flat? Work through five ordered checks to tell a broken telemetry pipeline from a real zero or a bad query.

Bedrock streaming token usage arrives in the final ConverseStream metadata event. Learn what a cancelled or dropped stream loses and how to record it honestly.