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 alerting, debugging, 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 alerting, debugging, or analytics.
When To Use
Use when you need to build custom observability logic, such as sending real-time logs to a specific HTTP endpoint or database, that is not supported by standard OpenTelemetry exports.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-observability-logs-tail-workflow-guide.md | A guide explaining how to configure and use Tail Workers to receive execution information from producer Workers for alerts, debugging, and analytics. | Questions about a guide explaining how to configure and use Tail Workers to receive execution information from producer Workers for a... |
examples/workers-observability-logs-tail-cloudflare-workers-logs-tail-javascript.text | A JavaScript code example demonstrating how to implement a tail worker that forwards log events to an external endpoint via a POST request. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to implement a tail worker that forwards log events to an external endpoi... |
examples/workers-observability-logs-tail-cloudflare-workers-logs-tail-event-json.text | A JSON representation of a log event object captured by a Cloudflare Workers tail worker. | Exact payloads, commands, or snippets shown in A JSON representation of a log event object captured by a Cloudflare Workers tail worker. |
examples/workers-observability-logs-tail-cloudflare-workers-observability-logs-ta.text | A configuration object defining tail consumers and service parameters for Cloudflare Workers observability logs. | Exact payloads, commands, or snippets shown in A configuration object defining tail consumers and service parameters for Cloudflare Workers observability logs. |
examples/workers-observability-logs-tail-cloudflare-workers-observability-logs-ta-2.text | A configuration snippet defining the tail_consumers service for Cloudflare Workers observability logs. | Exact payloads, commands, or snippets shown in A configuration snippet defining the tailconsumers service for Cloudflare Workers observability logs. |
examples/workers-observability-logs-tail-cloudflare-workers-observability-logs-ta-3.text | A JavaScript code example demonstrating how to implement a tail worker that writes log event data points to Cloudflare Analytics Engine. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to implement a tail worker that writes log event data points to Cloudflar... |
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/logs/tail-workers
