1 min readfrom InfoQ

Cloudflare Adds Agent Tracing, with Truncation Limits and Uneven Payload Defaults

Our take

Cloudflare has expanded its tracing capabilities with the introduction of Agent Tracing, now incorporating spans for agent invocations, model calls, tool runs, and approvals within Workers traces. This feature enables session replay, offering deeper insights into agent workflows. While traces provide valuable context, users should note that they are not lossless, and payloads may be truncated due to default settings that vary by framework. Starting October 1, 2026, each span will be a billable event.
Cloudflare Adds Agent Tracing, with Truncation Limits and Uneven Payload Defaults

Cloudflare’s recent introduction of agent tracing for Workers marks a significant evolution in observability for serverless environments, but one layered with practical considerations for developers. The move extends existing tracing capabilities to encompass agent invocations, model calls, tool runs, and approvals—crucial components of increasingly complex AI-powered workflows. This expands upon Cloudflare’s broader efforts to integrate its Developer Platform, as demonstrated by their recent migration of cdnjs, its open source CDN for JavaScript and CSS libraries, Cloudflare Migrates JavaScript CDN Serving 9B Requests a Day to Its Developer Platform. However, the accompanying caveats—specifically the warning about non-lossless traces and potential payload truncation—highlight the inherent challenges of comprehensive observability in distributed systems, especially when dealing with the variable nature of AI model responses. The shift towards agentic security, as explored in Agentic security: Enterprises enforce agent permissions two-thirds of the time — and isolate high-risk agents less than one in five, further underscores the need for robust tracing, as understanding agent behavior becomes paramount for both performance optimization and security auditing.

The decision to introduce billable spans from October 1, 2026, is a particularly noteworthy detail. While understandable from a business perspective, it necessitates careful planning and optimization for developers utilizing agent tracing. This isn't a sudden change; the lead time allows for adaptation—but it prompts a deeper consideration of what data is *truly* essential to retain for debugging and monitoring. Developers will need to proactively manage span creation, potentially employing techniques like filtering or sampling to control costs. The varying payload recording defaults across frameworks further complicate the landscape, requiring developers to investigate and configure settings appropriately for each framework they use. This underscores a broader trend in the observability space: the increasing complexity of managing telemetry data as systems become more distributed and incorporate more sophisticated components like large language models. Even those experimenting with local LLMs, as detailed in Building Multimodal Workflows with a Local LLM, will eventually need to consider observability strategies as these workflows scale and move beyond local development environments.

The introduction of agent tracing reflects the maturation of the serverless and AI landscape. We've moved beyond simple function tracing to a point where understanding the interaction between agents, models, and tools is critical for reliable and efficient operation. Cloudflare’s move isn't merely about adding new features; it's about providing the necessary tools to manage the complexity that comes with increasingly sophisticated applications. The emphasis on session replay, despite its limitations, represents a powerful debugging capability, allowing developers to step through execution flows and pinpoint the source of issues. However, the documentation's transparency about truncation and the eventual cost implications signals a shift towards a more pragmatic approach to observability—one that acknowledges the trade-offs between data fidelity and operational cost.

Looking ahead, the key question will be how developers adapt to this new reality. Will we see the emergence of new libraries and tools designed to intelligently manage span creation and payload recording, minimizing costs while maintaining adequate observability? Or will developers be forced to make difficult choices about which data to prioritize, potentially sacrificing valuable debugging information to stay within budget? The upcoming years will likely reveal a dynamic interplay between developer needs, platform capabilities, and the evolving economics of observability in the age of AI-powered serverless architectures.

Cloudflare launched agent tracing, adding spans for agent invocations, model calls, tool runs, and approvals to existing Workers traces. Sessions replay turn by turn, though the docs warn traces are not lossless and payloads may be truncated. Payload recording defaults differ by framework, and from October 1, 2026 every span counts as a billable event.

By Steef-Jan Wiggers

Read on the original site

Open the publisher's page for the full experience

View original article