Open
Description
What React Native libraries do you use?
React Navigation, Hermes, RN New Architecture
Are you using sentry.io or on-premise?
sentry.io (SaS)
@sentry/react-native SDK Version
6.14.0
How does your development environment look like?
⬇ Place the `npx react-native@latest info` output here. ⬇
"@sentry/react-native": "~6.14.0",
"react-native": "0.79.3",
Sentry.init()
const sentryReactNavigationIntegration = reactNavigationIntegration();
Sentry.init({
dsn: Config.SENTRY_DSN,
environment: Platform.OS,
sampleRate,
tracesSampleRate: sampleRate,
enableAutoSessionTracking: true,
enableAutoPerformanceTracing: true,
normalizeDepth: 10,
integrations: [
sentryReactNavigationIntegration,
httpClientIntegration({
failedRequestStatusCodes: [],
}),
],
ignoreErrors: [
'HTTP Client Error with status code: 500',
'HTTP Client Error with status code: 503',
],
beforeSend: async (event) => {
const {isInternetReachable} = await NetInfo.fetch();
return isInternetReachable ? event : null;
},
});
Steps to Reproduce
- Build and run for iOS
Expected Result
Error like HTTP Client Error with status code: 5xx should not be sent to sentry.io
Actual Result
5xx errors are all sent to sentry.io
Metadata
Metadata
Assignees
Type
Projects
Status
No status