From b98109e83d99d504cde5fbc4211536366741297c Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto <5731772+marandaneto@users.noreply.github.com> Date: Tue, 18 Apr 2023 18:28:08 +0200 Subject: [PATCH] Add isolate extension to readmes (#1390) --- dart/README.md | 2 +- flutter/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dart/README.md b/dart/README.md index ef0271396..e3cf3b6bb 100644 --- a/dart/README.md +++ b/dart/README.md @@ -180,7 +180,7 @@ Read more about [Automatic Instrumentation](https://docs.sentry.io/platforms/dar - Use a `catchError` block for `Futures`, examples on [dart.dev](https://dart.dev/guides/libraries/futures-error-handling). - The SDK already runs your `callback` on an error handler, e.g. using [runZonedGuarded](https://api.flutter.dev/flutter/dart-async/runZonedGuarded.html), events caught by the `runZonedGuarded` are captured automatically. - [Current Isolate errors](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) which is the equivalent of a main or UI thread, are captured automatically (Only for non-Web Apps). -- For your own `Isolates`, add an [Error Listener](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) and call `Sentry.captureException`. +- For your own `Isolates`, add an [Error Listener](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) by calling `isolate.addSentryErrorListener()`. #### Resources diff --git a/flutter/README.md b/flutter/README.md index 6d9799537..ed8b2d200 100644 --- a/flutter/README.md +++ b/flutter/README.md @@ -123,7 +123,7 @@ Or [try out the Alpha version of the Sentry Dart Plugin](https://github.com/gets - Use a `catchError` block for `Futures`, examples on [dart.dev](https://dart.dev/guides/libraries/futures-error-handling). - [Flutter-specific errors](https://api.flutter.dev/flutter/foundation/FlutterError/onError.html) are captured automatically. - [Current Isolate errors](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) which is the equivalent of a main or UI thread, are captured automatically (Only for non-Web Apps). -- For your own `Isolates`, add an [Error Listener](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) and call `Sentry.captureException`. +- For your own `Isolates`, add an [Error Listener](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) by calling `isolate.addSentryErrorListener()`. #### Resources