website
website copied to clipboard
'Report errors to a service' page issue
Page URL: https://flutter.dev/docs/cookbook/maintenance/error-reporting.html Page source: https://github.com/flutter/website/tree/master/src/docs/cookbook/maintenance/error-reporting.md
The code examples seem to be a little out of date, here are some fixes I had to do in order to get it working on Sentry 4.0.1
final SentryClient _sentry = SentryClient(new SentryOptions(
dsn:
"https://XYZ "));
_sentry.captureException(
error,
stackTrace: stackTrace,
I think flutter-doc's sentry page seems up-to-date. Good to close? Here is the sentry doc for comparison - https://docs.sentry.io/platforms/flutter/#configure
The examples on the Flutter page match those of Sentry 7.6+: https://docs.sentry.io/platforms/flutter/#configure
Closing issue.