Skip to content

Commit

Permalink
chore: [IOPLT-949] Filters HttpClientErrors events from Sentry (#6685)
Browse files Browse the repository at this point in the history
## Short description
This PR aims to filter error events to track on Sentry, in order to
ignore error generated by the OS Http client when opening a in-app
browser instance

## List of changes proposed in this pull request
- Changes on sentry init callback

## How to test
Nothing should be changed in terms of app functionalities, just sentry
ignoring related events
  • Loading branch information
CrisTofani authored Feb 4, 2025
1 parent 09d4346 commit 435848a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ts/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Sentry.init({
beforeSendTransaction(event) {
return removeUserFromEvent(event);
},
ignoreErrors: ["HTTPClientError"],
integrations: integrations => [...integrations, navigationIntegration],
enabled: !isDevEnv,
// https://sentry.zendesk.com/hc/en-us/articles/23337524872987-Why-is-the-the-message-in-my-error-being-truncated
Expand Down

0 comments on commit 435848a

Please sign in to comment.