Analytics - New cfWorker metric in Server-Timing header
4mo ago
Source
CloudflareAnalytics - New cfWorker metric in Server-Timing headercloudflare.comThe Server-Timing header now includes a new cfWorker metric that measures time spent executing Cloudflare Workers, including any subrequests performed by the Worker. This helps developers accurately identify whether high Time to First Byte (TTFB) is caused by Worker processing or slow upstream dependencies. Previously, Worker execution time was included in the edge metric, making it harder to identify true edge performance. The new cfWorker metric provides this visibility: Metric Description edge Total time spent on the Cloudflare edge, including Worker execution origin Time spent fetching from the origin server cfWorker Time spent in Worker execution, including subrequests but excluding origin fetch time Example response Server-Timing: cdn-cache; desc=DYNAMIC, edge; dur=20, origin; dur=100, cfWorker; dur=7 In this example, the edge took 20ms, the origin took 100ms, and the Worker added just 7ms of processing time. Availability The cfWorker metric is enabled by default if you have Real User Monitoring (RUM) enabled. Otherwise, you can enable it using Rules . This metric is particularly useful for: Performance debugging : Quickly determine if latency is caused by Worker code, external API calls within Workers, or slow origins. Optimization targeting : Identify which component of your request path needs optimization. Real User Monitoring (RUM) : Access detailed timing breakdowns directly from response headers for client-side analytics. For more information about Server-Timing headers, refer to the W3C Server Timing specification .
You might also wanna read
Cloudflare Addresses CPU Performance Benchmarks for Workers Platform
Cloudflare investigated and responded to independent benchmarks by Theo Browne that showed Cloudflare Workers performing 3.5x slower than Ve
Cloudflare's Speed Brain uses speculative prefetching to cut page load times by 45%
Cloudflare announces "Speed Brain," a new feature using the Speculation Rules API to prefetch web pages before users navigate to them, aimin
Cloudflare fixes CUBIC congestion control bug in QUIC implementation that permanently pinned performance at minimum
Cloudflare engineers discovered and fixed a bug in the CUBIC congestion control algorithm (RFC 9438) used in their QUIC implementation (quic
Why average CPU utilization is a misleading metric for cloud-native applications
The article discusses the pitfalls of relying on average CPU utilization metrics in cloud-native environments, particularly in Kubernetes. I

Comments
Sign in to join the conversation.
No comments yet. Be the first.