Skip to content

Commit b98109e

Browse files
authored
Add isolate extension to readmes (#1390)
1 parent ed605cc commit b98109e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dart/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Read more about [Automatic Instrumentation](https://docs.sentry.io/platforms/dar
180180
- Use a `catchError` block for `Futures`, examples on [dart.dev](https://dart.dev/guides/libraries/futures-error-handling).
181181
- 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.
182182
- [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).
183-
- For your own `Isolates`, add an [Error Listener](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) and call `Sentry.captureException`.
183+
- For your own `Isolates`, add an [Error Listener](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) by calling `isolate.addSentryErrorListener()`.
184184

185185
#### Resources
186186

flutter/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Or [try out the Alpha version of the Sentry Dart Plugin](https://github.com/gets
123123
- Use a `catchError` block for `Futures`, examples on [dart.dev](https://dart.dev/guides/libraries/futures-error-handling).
124124
- [Flutter-specific errors](https://api.flutter.dev/flutter/foundation/FlutterError/onError.html) are captured automatically.
125125
- [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).
126-
- For your own `Isolates`, add an [Error Listener](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) and call `Sentry.captureException`.
126+
- For your own `Isolates`, add an [Error Listener](https://api.flutter.dev/flutter/dart-isolate/Isolate/addErrorListener.html) by calling `isolate.addSentryErrorListener()`.
127127

128128
#### Resources
129129

0 commit comments

Comments
 (0)