How to use advanced Sentry capabilities?

Hi, I'd like to use sentry's beforeSend hook, but noticed there are 2 very different approaches that could be taken. From Cloudflare: https://developers.cloudflare.com/workers/observability/integrations/sentry/ From Sentry: https://docs.sentry.io/platforms/javascript/guides/cloudflare/ When looking at my sentry entries, I believe i have the Cloudflare one set up as i'm seeing the issues come from my tail worker. However, from Sentry's guide, its setup is quite different. I'm particularly interested in beforeSend as i'd like to filter out HTTP 404 responses. If there is a different way to do this, i'd be happy to go that path. I had thought about using worker routes but I have a custom domain pointed directly at the worker, and based on the documentation it implied that it wasn't possible to configure it at a route level then?
Cloudflare Docs
Sentry · Cloudflare Workers docs
Connect to a Sentry project from your Worker to automatically send errors and uncaught exceptions to Sentry.
Cloudflare | Sentry for Cloudflare
Official Sentry SDK for Cloudflare Workers and Cloudflare Pages.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?