On Cloudflare's Free plan?
Tail Workers need the Workers Paid or Enterprise plan. On the Free plan, collect logs from your Workers with our library instead.
Forward console.log output, uncaught exceptions and failed invocations from your existing Cloudflare Workers to Better Stack, without changing their code. A Tail Worker receives these events right after each invocation and sends them on.
Tail Workers need the Workers Paid or Enterprise plan. On the Free plan, collect logs from your Workers with our library instead.
Create a new HTTP source in Better Stack.
Create a new Worker called better-stack-tail:
Replace the contents of src/index.js with:
Deploy the Tail Worker:
Add better-stack-tail as a tail consumer in the Wrangler configuration of each Worker you want to collect logs from:
Redeploy each of those Workers:
Send a request to one of your Workers and open Better Stack β Live tail
Each log carries the Worker's name in worker, the request's method and url in request, and the invocation's outcome.
Please let us know at hello@betterstack.com.
We're happy to help! π
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.