Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] how use enableCaptureFailedRequests options ? #343

Closed
expcapitaldev opened this issue May 27, 2024 · 4 comments
Closed

[Question] how use enableCaptureFailedRequests options ? #343

expcapitaldev opened this issue May 27, 2024 · 4 comments

Comments

@expcapitaldev
Copy link

expcapitaldev commented May 27, 2024

My question related to https://docs.sentry.io/platforms/apple/guides/ios/configuration/http-client-errors/#customize-or-drop-the-error-event , how I can disable reporting in Sentry SDK HTTP errors ?

@expcapitaldev
Copy link
Author

hi Sentry team,
any updates ?

@lucas-zimerman
Copy link
Collaborator

Hi @expcapitaldev and sorry for the late response.
You can set it from the JavaScript code as shown on this example:

function onDeviceReady() {
  var Sentry = cordova.require("sentry-cordova.Sentry");
  Sentry.init({
    dsn: 'YOUR_DSN',
    ...
    enableCaptureFailedRequests: false,
  });

please let me know if you have any more questions.

@lucas-zimerman lucas-zimerman moved this from Needs Discussion to Needs More Information in Mobile & Cross Platform SDK Jun 23, 2024
@expcapitaldev
Copy link
Author

expcapitaldev commented Jun 24, 2024

hi Lucas, thanks for feedback, but we have some lint errors, looks like will be better to upate d.ts file
Object literal may only specify known properties, and enableCaptureFailedRequests does not exist in type Partial<CordovaOptions>
but I think issue resolved and we have solution for it

@lucas-zimerman
Copy link
Collaborator

Yeah it is not wrong, you can use // @ts-ignore above it for the time being while the options doesnt bundle enableCaptureFailedRequests

@github-project-automation github-project-automation bot moved this from Needs More Information to Done in Mobile & Cross Platform SDK Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants