Skip to content

Commit

Permalink
Only report reportable errors (#3558)
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa authored and lrapoport-cf committed Aug 11, 2023
1 parent 7a1aaee commit 0c4ad0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/edge-preview-authenticated-proxy/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,10 @@ export default {
} catch (e) {
console.error(e);
if (e instanceof HttpError) {
sentry.setContext("extra_details", e.data);
sentry.captureException(e);
if (e.reportable) {
sentry.setContext("Details", e.data);
sentry.captureException(e);
}
return e.toResponse();
} else {
sentry.captureException(e);
Expand Down

0 comments on commit 0c4ad0c

Please sign in to comment.