You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sentry.init({
defaultIntegrations: [
new ReactNativeErrorHandlers(),
new Release(),
...defaultIntegrations.filter(
i => !IGNORED_DEFAULT_INTEGRATIONS.includes(i.name),
),
new Integrations.Breadcrumbs({
console: false, // If this in enabled it causes problems to native calls on >= RN 0.60
fetch: false,
xhr: false, // This is the only change to the sentry original code, here we turn off automatic xhr tracking
}),
new DebugSymbolicator(),
new RewriteFrames({
iteratee: (frame: StackFrame) => {
if (frame.filename) {
frame.filename = frame.filename
.replace(/^file\:\/\//, '')
.replace(/^address at /, '')
.replace(/^.*\/[^\.]+(\.app|CodePush|.*(?=\/))/, '');
const appPrefix = 'app://';
// We always want to have a triple slash
frame.filename =
frame.filename.indexOf('/') === 0
? `${appPrefix}${frame.filename}`
: `${appPrefix}/${frame.filename}`;
}
return frame;
},
}),
new DeviceContext(),
],
dsn: SENTRY_DNS,
});
I have following issue:
I would like to be able to disable automatic breadcrumbs/tracking of the http requests.
In the older Sentry, let say 0.39.0, there was an option autoBreadcrumbs: false. This setting is not available any more. The only way I found to get similar results is to copy&paste almost the whole content of sdk.tshttps://github.com/getsentry/sentry-react-native/blob/master/src/js/sdk.ts#L28, just to add one line xhr: false in line 44 :/
It would be great to be able to provide my own settings without overwriting ALL of your default settings. Right now it is: take all settings without a change or provide everything not matter you want to change them or not.
The text was updated successfully, but these errors were encountered:
I just released 1.0.3 exposing BrowserIntegrations that should make this more easy.
You can just do
Sentry.init({
...
integrations: [newSentry.BrowserIntegrations.Breadcrumbs({console: false,// If this in enabled it causes problems to native calls on >= RN 0.60fetch: false,xhr: false})]});
OS:
Platform:
Output of
node -v && npm -v && npm ls --prod --depth=0
Config:
I have following issue:
I would like to be able to disable automatic breadcrumbs/tracking of the http requests.
In the older Sentry, let say 0.39.0, there was an option
autoBreadcrumbs: false
. This setting is not available any more. The only way I found to get similar results is to copy&paste almost the whole content ofsdk.ts
https://github.com/getsentry/sentry-react-native/blob/master/src/js/sdk.ts#L28, just to add one linexhr: false
in line 44 :/It would be great to be able to provide my own settings without overwriting ALL of your default settings. Right now it is: take all settings without a change or provide everything not matter you want to change them or not.
The text was updated successfully, but these errors were encountered: