-
Notifications
You must be signed in to change notification settings - Fork 758
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cass
authored
Mar 14, 2022
1 parent
2f0e59b
commit 56886cf
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
Stop reporting breadcrumbs to sentry | ||
|
||
Sentry's SDK automatically tracks "breadcrumbs", which are pieces of information | ||
that get tracked leading up to an exception. This can be useful for debugging | ||
errors because it gives better insight into what happens before an error occurs, | ||
so you can more easily understand and recreate exactly what happened before an | ||
error occurred. | ||
|
||
Unfortunately, Sentry automatically includes all `console` statements. And since | ||
we use the console a lot (e.g. logging every request received in `wrangler dev`), | ||
this is mostly useless. Additionally, since developers frequently use the console | ||
to debug their workers we end up with a bunch of data that is not only irrelevant | ||
to the reported error, but also contains data that could be potentially sensitive. | ||
|
||
For now, we're turning off breadcrumbs entirely. Later, we might wish to add our | ||
own breadcrumbs manually (e.g. add a "wrangler dev" breadcrumb when a user runs | ||
`wrangler dev`), at which point we can selectively enable breadcrumbs to catch | ||
only the ones we've put in there ourselves. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters