website icon indicating copy to clipboard operation
website copied to clipboard

'Report errors to a service' page issue

Open Spodeopieter2 opened this issue 4 years ago • 1 comments

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,

Spodeopieter2 avatar Jan 06 '21 09:01 Spodeopieter2

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

piedcipher avatar Sep 19 '22 18:09 piedcipher

The examples on the Flutter page match those of Sentry 7.6+: https://docs.sentry.io/platforms/flutter/#configure

Closing issue.

atsansone avatar May 30 '23 18:05 atsansone