-
-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Sentry to Cloudflare Functions #4487
base: master
Are you sure you want to change the base?
Conversation
Quick links (staging server):
Login:
SVG tester:Number of differences (default views): 0 ✅ Edited: 2025-01-24 14:36:22 UTC |
6e91c66
to
7a63d30
Compare
7a63d30
to
f0e5a70
Compare
f0e5a70
to
4b30263
Compare
@@ -15,7 +21,7 @@ GRAPHER_CONFIG_R2_BUCKET_FALLBACK_PATH = "v1" | |||
[env.preview.vars] | |||
MAILGUN_DOMAIN = "mg.ourworldindata.org" | |||
SLACK_ERROR_CHANNEL_ID = "C016H0BNNB1" | |||
ENV = "preview" | |||
ENV = "staging" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be consistent with other ENV
settings.
* We added the latest @sentry/cloudflare so this is to avoid duplicate transitive packages with different versions. * @sentry/vite-plugin is independent of that, but we might update it just as well.
924b190
to
cdc679f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! It's a shame we lose the source map 😢
I tried visiting https://sentry-cloudflare.owid.pages.dev/deleted/deleted-article but it didn't seem to log the error in Sentry. Did you have to do something else to get it to log?
I added a temporary code that raised the error on that URL to test that the integration works, and then I removed it. You could do the same, if you want to double-check. |
I set the
SENTRY_DSN
in staging wrangler .dev.vars and in the CF dashboard as secrets for both production and preview. See the testing issue.Resolves #4187