Closed chvin closed 3 years ago
@chvin that's true, you have 2 options, either you don't init. Sentry on debug mode or you can use the beforeSend
hook to filter the events which are on a debug environment.
For example: https://docs.sentry.io/platforms/flutter/data-management/sensitive-data/#scrubbing-data
if an event
has the environment
field set debug
, just return null.
On sentry_flutter: ^4.0.0-alpha.2
After initialize sentry, sentry will automatically uploads 'Flutter Error', Uncontrolled. Full code:
The above code triggered a Flutter error(layout error). In debug mode running, Sentry still upload error.