-
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/support-allow-urls-deny-urls
- Loading branch information
Showing
98 changed files
with
2,695 additions
and
743 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,30 +5,83 @@ | |
### Features | ||
|
||
- Support allowUrls and denyUrls for Flutter Web ([#2227](https://github.com/getsentry/sentry-dart/pull/2227)) | ||
|
||
```dart | ||
await SentryFlutter.init( | ||
(options) { | ||
options.dsn = 'https://[email protected]/0'; | ||
... | ||
options.allowUrls = ["^https://sentry.com.*\$", "my-custom-domain"]; | ||
options.denyUrls = ["^.*ends-with-this\$", "denied-url"]; | ||
options.denyUrls = ["^.*ends-with-this\$", "denied-url"]; | ||
}, | ||
appRunner: () => runApp(MyApp()), | ||
); | ||
``` | ||
|
||
- Session replay Alpha for Android and iOS ([#2208](https://github.com/getsentry/sentry-dart/pull/2208)). | ||
|
||
To try out replay, you can set following options (access is limited to early access orgs on Sentry. If you're interested, [sign up for the waitlist](https://sentry.io/lp/mobile-replay-beta/)): | ||
|
||
```dart | ||
await SentryFlutter.init( | ||
(options) { | ||
... | ||
options.experimental.replay.sessionSampleRate = 1.0; | ||
options.experimental.replay.errorSampleRate = 1.0; | ||
}, | ||
appRunner: () => runApp(MyApp()), | ||
); | ||
``` | ||
|
||
### Dependencies | ||
|
||
- Bump Cocoa SDK from v8.35.1 to v8.36.0 ([#2252](https://github.com/getsentry/sentry-dart/pull/2252)) | ||
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8360) | ||
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.35.1...8.36.0) | ||
|
||
## 8.8.0 | ||
|
||
### Features | ||
|
||
- Add `SentryFlutter.nativeCrash()` using MethodChannels for Android and iOS ([#2239](https://github.com/getsentry/sentry-dart/pull/2239)) | ||
- This can be used to test if native crash reporting works | ||
|
||
- Add `ignoreRoutes` parameter to `SentryNavigatorObserver`. ([#2218](https://github.com/getsentry/sentry-dart/pull/2218)) | ||
- This will ignore the Routes and prevent the Route from being pushed to the Sentry server. | ||
- Ignored routes will also create no TTID and TTFD spans. | ||
```dart | ||
SentryNavigatorObserver(ignoreRoutes: ["/ignoreThisRoute"]), | ||
``` | ||
- This will ignore the Routes and prevent the Route from being pushed to the Sentry server. | ||
- Ignored routes will also create no TTID and TTFD spans. | ||
|
||
```dart | ||
SentryNavigatorObserver(ignoreRoutes: ["/ignoreThisRoute"]), | ||
``` | ||
|
||
### Improvements | ||
|
||
- Debouncing of SentryWidgetsBindingObserver.didChangeMetrics with delay of 100ms. ([#2232](https://github.com/getsentry/sentry-dart/pull/2232)) | ||
|
||
### Dependencies | ||
|
||
- Bump Cocoa SDK from v8.33.0 to v8.35.1 ([#2247](https://github.com/getsentry/sentry-dart/pull/2247)) | ||
- [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8351) | ||
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.33.0...8.35.1) | ||
- Bump Android SDK from v7.13.0 to v7.14.0 ([#2228](https://github.com/getsentry/sentry-dart/pull/2228)) | ||
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7140) | ||
- [diff](https://github.com/getsentry/sentry-java/compare/7.13.0...7.14.0) | ||
|
||
## 8.8.0-alpha.1 | ||
|
||
### Features | ||
|
||
- iOS Session Replay Alpha ([#2209](https://github.com/getsentry/sentry-dart/pull/2209)) | ||
- Android replay touch tracking support ([#2228](https://github.com/getsentry/sentry-dart/pull/2228)) | ||
- Add `ignoreRoutes` parameter to `SentryNavigatorObserver`. ([#2218](https://github.com/getsentry/sentry-dart/pull/2218)) | ||
- This will ignore the Routes and prevent the Route from being pushed to the Sentry server. | ||
- Ignored routes will also create no TTID and TTFD spans. | ||
|
||
```dart | ||
SentryNavigatorObserver(ignoreRoutes: ["/ignoreThisRoute"]), | ||
``` | ||
|
||
### Dependencies | ||
|
||
- Bump Android SDK from v7.13.0 to v7.14.0 ([#2228](https://github.com/getsentry/sentry-dart/pull/2228)) | ||
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7140) | ||
- [diff](https://github.com/getsentry/sentry-java/compare/7.13.0...7.14.0) | ||
|
@@ -39,6 +92,7 @@ SentryNavigatorObserver(ignoreRoutes: ["/ignoreThisRoute"]), | |
|
||
- Add support for span level measurements. ([#2214](https://github.com/getsentry/sentry-dart/pull/2214)) | ||
- Add `ignoreTransactions` and `ignoreErrors` to options ([#2207](https://github.com/getsentry/sentry-dart/pull/2207)) | ||
|
||
```dart | ||
await SentryFlutter.init( | ||
(options) { | ||
|
@@ -50,8 +104,10 @@ SentryNavigatorObserver(ignoreRoutes: ["/ignoreThisRoute"]), | |
appRunner: () => runApp(MyApp()), | ||
); | ||
``` | ||
|
||
- Add proxy support ([#2192](https://github.com/getsentry/sentry-dart/pull/2192)) | ||
- Configure a `SentryProxy` object and set it on `SentryFlutter.init` | ||
|
||
```dart | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:sentry_flutter/sentry_flutter.dart'; | ||
|
@@ -91,24 +147,25 @@ SentryNavigatorObserver(ignoreRoutes: ["/ignoreThisRoute"]), | |
- This is enabled automatically and will change grouping if you already have issues with obfuscated titles | ||
- If you want to disable this feature, set `enableExceptionTypeIdentification` to `false` in your Sentry options | ||
- You can add your custom exception identifier if there are exceptions that we do not identify out of the box | ||
```dart | ||
// How to add your own custom exception identifier | ||
class MyCustomExceptionIdentifier implements ExceptionIdentifier { | ||
@override | ||
String? identifyType(Exception exception) { | ||
if (exception is MyCustomException) { | ||
return 'MyCustomException'; | ||
} | ||
if (exception is MyOtherCustomException) { | ||
return 'MyOtherCustomException'; | ||
|
||
```dart | ||
// How to add your own custom exception identifier | ||
class MyCustomExceptionIdentifier implements ExceptionIdentifier { | ||
@override | ||
String? identifyType(Exception exception) { | ||
if (exception is MyCustomException) { | ||
return 'MyCustomException'; | ||
} | ||
if (exception is MyOtherCustomException) { | ||
return 'MyOtherCustomException'; | ||
} | ||
return null; | ||
} | ||
return null; | ||
} | ||
} | ||
SentryFlutter.init((options) => | ||
options..prependExceptionTypeIdentifier(MyCustomExceptionIdentifier())); | ||
``` | ||
SentryFlutter.init((options) => | ||
options..prependExceptionTypeIdentifier(MyCustomExceptionIdentifier())); | ||
``` | ||
|
||
### Deprecated | ||
|
||
|
@@ -124,6 +181,27 @@ SentryFlutter.init((options) => | |
- [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#7130) | ||
- [diff](https://github.com/getsentry/sentry-java/compare/7.12.0...7.13.0) | ||
|
||
## 8.6.0-alpha.2 | ||
|
||
### Features | ||
|
||
- Android Session Replay Alpha ([#2032](https://github.com/getsentry/sentry-dart/pull/2032)) | ||
|
||
To try out replay, you can set following options: | ||
|
||
```dart | ||
await SentryFlutter.init( | ||
(options) { | ||
... | ||
options.experimental.replay.sessionSampleRate = 1.0; | ||
options.experimental.replay.errorSampleRate = 1.0; | ||
}, | ||
appRunner: () => runApp(MyApp()), | ||
); | ||
``` | ||
|
||
Access is limited to early access orgs on Sentry. If you're interested, [sign up for the waitlist](https://sentry.io/lp/mobile-replay-beta/) | ||
|
||
## 8.5.0 | ||
|
||
### Features | ||
|
@@ -136,7 +214,7 @@ SentryFlutter.init((options) => | |
### Fixes | ||
|
||
- Disable sff & frame delay detection on web, linux and windows ([#2182](https://github.com/getsentry/sentry-dart/pull/2182)) | ||
- Display refresh rate is locked at 60 for these platforms which can lead to inaccurate metrics | ||
- Display refresh rate is locked at 60 for these platforms which can lead to inaccurate metrics | ||
|
||
### Improvements | ||
|
||
|
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
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
Oops, something went wrong.