Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Tail Handler

Implements the tail() handler to process real-time logs and telemetry from producer Workers for streaming to analytics or logging services.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Tail Handler

Implements the tail() handler to process real-time logs and telemetry from producer Workers for streaming to analytics or logging services.

When To Use

Use when you need to implement a real-time log processing pipeline or stream Worker invocation telemetry to an external analytics service.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-runtime-apis-handlers-tail-handler-workflow-guide.mdDocumentation detailing the syntax, parameters, and properties of the Workers tail() handler for real-time log processing.Questions about documentation detailing the syntax, parameters, and properties of the Workers tail() handler for real-time log proces...
examples/workers-runtime-apis-handlers-tail-handler-cloudflare-workers-tail-handl.textA JavaScript code example demonstrating how to implement the tail handler to process log events in a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to implement the tail handler to process log events in a Cloudflare Worker.

What This Skill Covers

  • The tail() handler is the handler you implement when writing a Tail Worker. Tail Workers can be used to process logs in real-time and send them to a logging...
  • Main sections: Background, Syntax, Parameters, Properties, TailItems.

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/runtime-apis/handlers/tail