Instrument the owner of the final outcome
Use the model SDK guide for request cost and latency, then add the agent or framework guide where tool selection, retries, and final task status become known.
Compare implementation guides for model providers, agent frameworks, tool orchestration, retrieval systems, and AI application runtimes.
Reviewed by the Telemetry product team on . Runtime boundaries, shared event fields, verification workflow, and upstream implementation sources. Review standards and ownership
20 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
Use the model SDK guide for request cost and latency, then add the agent or framework guide where tool selection, retries, and final task status become known.
Retain a trace backend for detailed spans when needed. Send a bounded product outcome to Telemetry with an approved correlation identifier.
Connect tokens and latency to reviewed outcomes such as accepted, saved, resolved, escalated, or handed off instead of optimizing request volume alone.
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
Log OpenAI agent runs, tool calls, model usage, latency, cost, and final outcomes with structured events.
Open guideMeasure OpenAI Responses API latency, token usage, tool activity, failures, and downstream outcomes without collecting prompts or generated content.
Open guideTrack LiteLLM provider routing, retries, fallbacks, token usage, latency, cost estimates, and accepted outcomes across a controlled model gateway.
Open guideTrack Claude API token usage, model, latency, stop reason, errors, cost context, and reviewed product outcomes without storing prompts.
Open guideTrack Gemini request latency, model usage, tokens, finish reason, errors, and reviewed product outcomes without storing prompts or generated content.
Open guideMeasure Bedrock Converse requests by model or inference profile, token usage, latency, stop reason, retries, and business outcome.
Open guideTrack Azure OpenAI deployment usage, token cost, latency, failures, and product outcomes with editable SQL-ready events.
Open guideTrack streaming completions, token usage, retries, latency, and accepted results from AI SDK workflows.
Open guideConnect LangChain agent runs and tool outcomes to product-facing cost, reliability, handoff, and acceptance metrics without duplicating raw traces.
Open guideMeasure LangGraph run outcomes, node and tool failures, retries, checkpoints, human handoffs, latency, and reviewed task quality.
Open guideTrack Claude Agent SDK run outcomes, duration, tool activity, turns, cost, and approved product signals without storing prompts or tool payloads.
Open guideMeasure Pydantic AI run outcomes, validated outputs, retries, tool activity, latency, usage, and product acceptance with safe structured events.
Open guideTrack CrewAI crew and flow outcomes, task counts, handoffs, retries, latency, cost, and accepted results without retaining agent conversations.
Open guideMeasure Google Agent Development Kit sessions, run outcomes, tool activity, handoffs, latency, and approved product signals with SQL-ready events.
Open guideTrack Mastra agent and workflow outcomes, tool activity, latency, retries, cost, and product acceptance alongside built-in traces and evals.
Open guideTrack LlamaIndex agent and workflow outcomes, tool activity, latency, retrieval versions, cost, and reviewed quality with structured events.
Open guideMeasure DSPy program latency, failures, metric scores, optimizer versions, model cost, and accepted outcomes across releases with SQL-ready events.
Open guideTrack AutoGen team and agent outcomes, messages, tool activity, handoffs, latency, failures, cost, and releases with compact structured events.
Open guideMeasure Semantic Kernel function and agent outcomes, tool activity, model usage, latency, cost, and releases alongside OpenTelemetry traces.
Open guideTrack Model Context Protocol tool outcomes, latency, errors, approvals, retries, clients, and releases without storing arguments or returned content.
Open guideCreate a free API key, choose the closest runtime guide, and send one known success and failure before expanding coverage.