Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-observability-logs-tail-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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