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 logging, alerting, 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 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

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

  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/tail-workers