-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add ignoreTransactions and ignoreErrors #1391 * chore: add changelog entry * move methods from sentry_options to sentry_client and change to private * change discard reason to ignored Co-authored-by: Giancarlo Buenaflor <[email protected]> * change iterable to list * add event recorder to ignoredTransactions * add tests for ignoreTransactions * set ignoreErrors list to empty list a default Co-authored-by: Giancarlo Buenaflor <[email protected]> * change variables to final for ignoreTransaction Co-authored-by: Giancarlo Buenaflor <[email protected]> * change var to final for ignoreErrors and adapt test * Update CHANGELOG.md Co-authored-by: Giancarlo Buenaflor <[email protected]> * Add example for ignoreTransactions and ignoreErrors to changelog * fix: check for empty ignoreError and ignoreTransaction before handling regex * moved ignoreTransactions and ignoreErrors back to unreleased area in CHANGELOG.md * refactored implementation of ignoreErrors and ignoreTransactions and improved test cases * removed unnecessary backslash from tests --------- Co-authored-by: Martin <> Co-authored-by: Martin <[email protected]> Co-authored-by: Giancarlo Buenaflor <[email protected]>
- Loading branch information
1 parent
7ec9238
commit 2e1e4ae
Showing
4 changed files
with
190 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,18 @@ | |
### Features | ||
|
||
- Add support for span level measurements. ([#2214](https:/getsentry/sentry-dart/pull/2214)) | ||
- Add `ignoreTransactions` and `ignoreErrors` to options ([#2207](https:/getsentry/sentry-dart/pull/2207)) | ||
```dart | ||
await SentryFlutter.init( | ||
(options) { | ||
options.dsn = 'https://[email protected]/0'; | ||
options.ignoreErrors = ["my-error", "^error-.*\$"]; | ||
options.ignoreTransactions = ["my-transaction", "^transaction-.*\$"]; | ||
... | ||
}, | ||
appRunner: () => runApp(MyApp()), | ||
); | ||
``` | ||
|
||
## 8.6.0 | ||
|
||
|
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