cloudflare · Cloudflare Workers Docs
Observability Tail Workers
Implements a specialized Worker that intercepts and processes execution data, such as HTTP statuses and console logs, from other producer Workers for custom logging, alerting, or analytics.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Observability Tail Workers
Implements a specialized Worker that intercepts and processes execution data, such as HTTP statuses and console logs, from other producer Workers for custom logging, alerting, or analytics.
When To Use
Use when you need to implement custom observability logic, such as sending real-time execution events to a specific HTTP endpoint or database, that is not supported by standard OpenTelemetry configurations.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-observability-tail-workflow-guide.md | A guide explaining how to configure and use Tail Workers to receive execution information from producer Workers for logging, debugging, and analytics. | Questions about a guide explaining how to configure and use Tail Workers to receive execution information from producer Workers for l... |
examples/workers-observability-tail-cloudflare-workers-observability-tail-javascr.text | A JavaScript code example demonstrating how to implement a tail worker that fetches and processes log events. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to implement a tail worker that fetches and processes log events. |
examples/workers-observability-tail-cloudflare-workers-observability-tail-log-eve.text | A sample log event object containing script metadata, exception details, and request headers for Cloudflare Workers tailing. | Exact payloads, commands, or snippets shown in A sample log event object containing script metadata, exception details, and request headers for Cloudflare Workers t... |
examples/workers-observability-tail-cloudflare-workers-observability-tail-consume.text | A configuration snippet defining tail consumers for Cloudflare Workers observability. | Exact payloads, commands, or snippets shown in A configuration snippet defining tail consumers for Cloudflare Workers observability. |
examples/workers-observability-tail-cloudflare-workers-observability-tail-consume-2.text | A configuration snippet defining the tail_consumers service for Cloudflare Workers observability. | Exact payloads, commands, or snippets shown in A configuration snippet defining the tailconsumers service for Cloudflare Workers observability. |
examples/workers-observability-tail-cloudflare-workers-observability-tail-javascr-2.text | A JavaScript code example demonstrating how to implement a tail worker to process and write analytics data points from worker events. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to implement a tail worker to process and write analytics data points fro... |
What This Skill Covers
- A Tail Worker receives information about the execution of other Workers (known as producer Workers), such as HTTP statuses, data passed to console.log() or u...
- Main sections:
Configure Tail Workers,Use Analytics Engine for aggregated metrics,Related resources.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/observability/tail-workers
