-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ignoreErrors and ignoreTransactions for Dart (#10989)
* add ignoreErrors and ignoreTransactions for Dart * improved misleading code samples for ignoreErrors and ignoreTransactions * removed unnecessary backslash from codesamples
- Loading branch information
1 parent
f6d39b8
commit 30dc4cb
Showing
3 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
```dart | ||
await SentryFlutter.init( | ||
(options) { | ||
options.dsn = '___PUBLIC_DSN___'; | ||
options.ignoreErrors = ["my-error", "^error-.*\$"]; | ||
... | ||
}, | ||
appRunner: () => runApp(MyApp()), | ||
); | ||
``` |
10 changes: 10 additions & 0 deletions
10
platform-includes/configuration/ignore-transactions/dart.mdx
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 @@ | ||
```dart | ||
await SentryFlutter.init( | ||
(options) { | ||
options.dsn = '___PUBLIC_DSN___'; | ||
options.ignoreTransactions = ["my-transaction", "^transaction-.*\$" ]; | ||
... | ||
}, | ||
appRunner: () => runApp(MyApp()), | ||
); | ||
``` |