-
Notifications
You must be signed in to change notification settings - Fork 1k
allow WRANGLER_SEND_ERROR_REPORTS to override whether to report Wrangler crashes to Sentry #10735
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
Conversation
🦋 Changeset detectedLatest commit: d1d268d The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the Depending on your changes, running Notes:
|
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
b1728b2 to
0070ce4
Compare
0070ce4 to
71e0b1c
Compare
…gler crashes to Sentry
71e0b1c to
d1d268d
Compare
edmundhung
left a comment
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.
Approved with a few nits.
We probably want to update the docs for the new env var as well.
| event_id: "", | ||
| sdk: { | ||
| name: "sentry.javascript.node", | ||
| version: "7.87.0", |
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.
This will require us to update the test when ever we update the sentry client. Would it be better to match it with expect.any(String) instead?
There are a few more version number above.
| sent_at: "", | ||
| trace: { | ||
| environment: "production", | ||
| public_key: "9edbb8417b284aa2bbead9b4c318918b", |
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.
Looks like a magic number that could change? Maybe match it with expect.any(String) as well?
| sent_at: "", | ||
| trace: { | ||
| environment: "production", | ||
| public_key: "9edbb8417b284aa2bbead9b4c318918b", |
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.
| public_key: "9edbb8417b284aa2bbead9b4c318918b", | |
| public_key: expect.any(String), |
| event_id: "", | ||
| sdk: { | ||
| name: "sentry.javascript.node", | ||
| version: "7.87.0", |
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.
| version: "7.87.0", | |
| version: expect.any(String), |
| version: "7.87.0", | ||
| }, | ||
| ], | ||
| version: "7.87.0", |
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.
| version: "7.87.0", | |
| version: expect.any(String), |
| packages: [ | ||
| { | ||
| name: "npm:@sentry/node", | ||
| version: "7.87.0", |
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.
| version: "7.87.0", | |
| version: expect.any(String), |
| @@ -0,0 +1,5 @@ | |||
| --- | |||
| "wrangler": patch | |||
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.
Is this a fix or new feature? 🤔
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.
I'll bump it to minor
|
Thanks for the review @edmundhung - the new Sentry test is an exact copy of another test in that file. So there is no new reliance upon magic constants that wasn't there before. We can improve that in another PR, but so far it seems that we have rarely been bothered by it - perhaps because there has not been any update to that dependency in a long time? |
|
Created a docs PR: cloudflare/cloudflare-docs#25605 |
Fixes #10719