-
Notifications
You must be signed in to change notification settings - Fork 769
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
[wrangler] fix: sanitise error reports and only report unknown errors #4707
Conversation
This reverts commit 1c9817b.
Removes PII information from Sentry events
Introduces a new `UserError` base class. Instances of this class won't be reported to Sentry.
🦋 Changeset detectedLatest commit: 4b12346 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7424161887/npm-package-wrangler-4707 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7424161887/npm-package-wrangler-4707 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7424161887/npm-package-wrangler-4707 dev path/to/script.js Additional artifacts:npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7424161887/npm-package-miniflare-4707 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7424161887/npm-package-cloudflare-pages-shared-4707 npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/7424161887/npm-package-create-cloudflare-4707 --no-auto-update Note that these links will no longer work once the GitHub Actions artifact expires.
| Please ensure constraints are pinned, and |
b8c16b9
to
ce03c92
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4707 +/- ##
==========================================
+ Coverage 75.58% 75.70% +0.11%
==========================================
Files 243 243
Lines 13096 13200 +104
Branches 3375 3388 +13
==========================================
+ Hits 9899 9993 +94
- Misses 3197 3207 +10
|
ce03c92
to
4b12346
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.
Pages' stuff looks good
Fixes DEVX-1117
What this PR solves / how to test:
This PR tries to remove PII from Sentry error reports, and also ensures we're not reporting user errors that aren't actionable by us. User errors now extend a new
UserError
base class that doesn't get reported. Annotating user errors is a separate commit for easier reviewing.To test this, try run
wrangler dev i-dont-exist.js
(you'll need to use a pre-release build with Sentry enabled). Notice an error is thrown but you're not prompted to report this.Author has addressed the following:
Note for PR author:
We want to celebrate and highlight awesome PR review! If you think this PR received a particularly high-caliber review, please assign it the label
highlight pr review
so future reviewers can take inspiration and learn from it.