workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🚀 Feature Request: Support Attaching Tail Workers to Workers from Pages Projects

Open thoughtentity opened this issue 1 year ago • 2 comments

Describe the solution

Currently, Cloudflare workers support a feature called tail workers that allows a worker to receive the execution status and logs of another worker. Tail workers are attached to workers using the tail_consumers property in their wrangler.toml file. However, when used in a Cloudflare Pages project, wrangler will error with a not supported error.

image

I'd like to see feature parity for attaching tail workers to Cloudflare Pages generated workers as their really useful for post processing of telemetry data. In my case, I'm processing and shipping OpenTelemetry traces and logs from the worker via the tail worker for monitoring and observability. Having feature parity between pages and workers for tail workers would allow me to unify telemetry processing to a single tail worker for all my Cloudflare pages and workers projects.

thoughtentity avatar Aug 29 '24 00:08 thoughtentity

Hi @thoughtentity! Thanks for the feature request! Rather than adding Workers features to Pages, we're instead adding Pages features to Workers. This is a great example of something that will be possible out-of-the-box then

RamIdeas avatar Sep 09 '24 14:09 RamIdeas