cloudflare · Cloudflare Workers Docs
Workers Diagnostics Channel
Implementation guide for using the Node.js diagnostics_channel API in Cloudflare Workers to report diagnostic events and integrate with Tail Workers for event forwarding.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Diagnostics Channel
Implementation guide for using the Node.js diagnostics_channel API in Cloudflare Workers to report diagnostic events and integrate with Tail Workers for event forwarding.
When To Use
Use when you need to implement low-overhead diagnostic event reporting in Cloudflare Workers or forward diagnostic messages to a Tail Worker for monitoring application flow.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-runtime-apis-nodejs-diagnostics-channel-workflow-guide.md | Documentation explaining how to enable and use the Node.js Diagnostics Channel API within Cloudflare Workers using the nodejs_compat flag. | Questions about documentation explaining how to enable and use the Node.js Diagnostics Channel API within Cloudflare Workers using th... |
examples/workers-runtime-apis-nodejs-diagnostics-channel-cloudflare-workers-diagn.text | A JavaScript code example demonstrating how to publish and subscribe to messages using the Workers Diagnostics Channel API. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to publish and subscribe to messages using the Workers Diagnostics Channe... |
examples/workers-runtime-apis-nodejs-diagnostics-channel-cloudflare-workers-diagn-2.text | A JavaScript code example demonstrating how to iterate through and log diagnostics channel events within a Cloudflare Workers tail handler. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to iterate through and log diagnostics channel events within a Cloudflare... |
examples/workers-runtime-apis-nodejs-diagnostics-channel-cloudflare-workers-diagn-3.text | A JavaScript code example demonstrating how to use the node:diagnostics_channel API to trace events within a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the node:diagnosticschannel API to trace events within a Cloudflar... |
What This Skill Covers
- To enable built-in Node.js APIs and polyfills, add the nodejs\compat compatibility flag to your Wrangler configuration file. This also enables nodejs\compat...
- Main sections:
Integration with Tail Workers,TracingChannel.
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/runtime-apis/nodejs/diagnostics-channel
