Tools

Cloudflare Introduces Traces for Production Request Observability

Cloudflare has launched Traces, a new observability feature that allows developers to monitor and analyze the lifecycle of production requests across its platform.

A
AIDeveloper44 Team
October 2, 2026·4 min read
Cloudflare Introduces Traces for Production Request Observability

Cloudflare Traces visualizes the complex journey of a network request across the edge platform.

TL;DR
  • Cloudflare Traces provides visibility into how production traffic moves through security, cache, and Workers.
  • Each trace captures spans representing specific operations, allowing for granular latency and outcome analysis.
  • The tool is designed to help developers identify the specific rules or components affecting individual request paths.

Understanding Cloudflare Traces

Cloudflare has introduced a new observability feature known as Traces, designed to provide developers with a detailed view of how production requests traverse the company's platform. Unlike simulation tools that predict how configurations might behave, Traces captures data from actual live traffic on a domain, offering a clear picture of the request lifecycle from initial entry to origin connection.

As web applications become increasingly complex, often involving a mix of edge computing, security rules, and distributed microservices, tracking down the source of performance issues or unexpected behavior has become a challenge for engineering teams. Cloudflare Traces addresses this by providing a structured, hierarchical view of request processing, allowing teams to inspect every step in the path.

How Traces Functions

At the core of the service is the concept of a "trace," which is composed of multiple "spans." Each span represents a discrete operation that occurred during the request's journey. Supported steps in the request path currently include security rules, request routing, cache interactions, Cloudflare Workers, and connections to origin servers. Each span records essential telemetry data, such as the duration of the operation, its final outcome (success or failure), and various attributes that add context to the request.

By leveraging this data, developers can move beyond aggregate statistics and focus on specific request instances. The platform allows users to filter traces by criteria such as the Ray ID, which is particularly useful for investigating individual requests that experienced high latency or failed to complete as expected.

Use Cases for Observability

The implementation of Traces is intended to help developers answer several common operational questions that arise during troubleshooting. For instance, if a request is blocked or triggered a security challenge, Traces can identify exactly which security rule was responsible for the action. It also clarifies whether a URL was modified by a Transform Rule or if a specific Worker script influenced the request's behavior.

Furthermore, the tool provides visibility into caching performance. Developers can determine if a response was served from the edge cache and, if not, pinpoint where time was spent during the round trip between Cloudflare, the application logic, and the origin server. This level of granularity helps in isolating performance bottlenecks to specific geographic regions or particular configurations.

Integration and Configuration

To begin using Traces, administrators must enable the feature on a per-domain basis within their Cloudflare account. The system is designed to allow management of sampling rates, trace rules, and data export destinations. This flexibility ensures that teams can gather sufficient data without overwhelming their monitoring systems.

For those requiring deeper analysis or integration with existing monitoring stacks, the documentation notes that Traces integrates with broader observability pipelines, facilitating the export of data to third-party tools. This allows the information captured at the edge to be correlated with logs and metrics from other parts of the infrastructure, providing a holistic view of the entire technology stack.

By providing direct insight into the request path at the edge, Cloudflare aims to reduce the time spent on debugging complex request flows. With the ability to inspect the hierarchy of operations in real-time, developers gain a diagnostic advantage when managing high-traffic, multi-layered web architectures.

Diagram: Cloudflare Traces request lifecycle monitoring.

Enjoyed this?

Get more posts like this delivered to your inbox.