-
-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Add getCurrentStackTrace (#2072)
Add the wrapper method getCurrentStackTrace so the SDK crash detection can ignore it.
- Loading branch information
1 parent
b8562d0
commit be173fa
Showing
3 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import 'package:meta/meta.dart'; | ||
|
||
// A wrapper function around StackTrace.current so we can ignore it in the SDK | ||
// crash detection. Otherwise, the SDK crash detection would have to ignore the | ||
// method calling StackTrace.current, and it can't detect crashes in that | ||
// method. | ||
// You can read about the SDK crash detection here: | ||
// https://github.com/getsentry/sentry/blob/master/src/sentry/utils/sdk_crashes/README.rst | ||
@internal | ||
StackTrace getCurrentStackTrace() => StackTrace.current; |