Trace and improve Cloudflare Agents
Blog post from Braintrust
Cloudflare has introduced native tracing for agents built on Cloudflare Workers, using OpenTelemetry spans that can be exported to OTLP-compatible platforms such as Braintrust for production monitoring, evaluation, and improvement. Developers can either configure Braintrust as an OTLP destination through Workers Observability without adding an SDK to their Worker, or use Braintrust’s JavaScript instrumentation for Cloudflare Agents SDK, @cloudflare/ai-chat, @cloudflare/think, and Flue, subject to specified package versions and Workers deployment requirements. Traces capture agent and model invocations, tool calls and approvals, subagent activity, token usage, decisions, and underlying infrastructure behavior, helping teams diagnose issues such as incorrect tool usage, unsuitable model choices, or slow database queries. Braintrust can also turn production traces into evaluation datasets, enabling comparisons of models and subagents and testing of prompt or tool changes before deployment, while its Flue integration supports evaluation reporting through vitest-evals.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Observability | 5 | 625 | 152 | 84 | -84% |
| OpenTelemetry | 4 | 158 | 34 | 25 | -85% |
| LLM | 1 | 1,189 | 251 | 109 | -83% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.