captureFailedRequests property

bool captureFailedRequests
getter/setter pair

Configures whether to record exceptions for failed requests. Examples for captures exceptions are:

  • In an browser environment this can be requests which fail because of CORS.
  • In an mobile or desktop application this can be requests which failed because the connection was interrupted. Use with SentryHttpClient or sentry_dio integration for this to work, or iOS native where it sets the value to enableCaptureFailedRequests.

Implementation

bool captureFailedRequests = true;