-
-
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.
Improve changelog with code snippets (#1403)
- Loading branch information
1 parent
d85ffe7
commit 6c041fb
Showing
1 changed file
with
37 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -4,14 +4,50 @@ | |
|
||
### Features | ||
|
||
- SentryIOOverridesIntegration ([#1362](https://github.com/getsentry/sentry-dart/pull/1362)) | ||
- Add `SentryIOOverridesIntegration` that automatically wraps `File` into `SentryFile` ([#1362](https://github.com/getsentry/sentry-dart/pull/1362)) | ||
|
||
```dart | ||
import 'package:sentry_file/sentry_file.dart'; | ||
// SDK init. options | ||
options.addIntegration(SentryIOOverridesIntegration()); | ||
``` | ||
|
||
- Add `enableTracing` option ([#1395](https://github.com/getsentry/sentry-dart/pull/1395)) | ||
- This change is backwards compatible. The default is `null` meaning existing behaviour remains unchanged (setting either `tracesSampleRate` or `tracesSampler` enables performance). | ||
- If set to `true`, performance is enabled, even if no `tracesSampleRate` or `tracesSampler` have been configured. | ||
- If set to `true`, sampler will use default sample rate of 1.0, if no `tracesSampleRate` is set. | ||
- If set to `false` performance is disabled, regardless of `tracesSampleRate` and `tracesSampler` options. | ||
|
||
```dart | ||
// SDK init. options | ||
options.enableTracing = true; | ||
``` | ||
|
||
- Sync `connectionTimeout` and `readTimeout` to Android ([#1397](https://github.com/getsentry/sentry-dart/pull/1397)) | ||
|
||
```dart | ||
// SDK init. options | ||
options.connectionTimeout = Duration(seconds: 10); | ||
options.readTimeout = Duration(seconds: 10); | ||
``` | ||
|
||
- Set User `name` and `geo` in native plugins ([#1393](https://github.com/getsentry/sentry-dart/pull/1393)) | ||
|
||
```dart | ||
Sentry.configureScope( | ||
(scope) => scope.setUser(SentryUser( | ||
id: '1234', | ||
name: 'Jane Doe', | ||
email: '[email protected]', | ||
geo: SentryGeo( | ||
city: 'Vienna', | ||
countryCode: 'AT', | ||
region: 'Austria', | ||
))), | ||
); | ||
``` | ||
|
||
- Add processor count to device info ([#1402](https://github.com/getsentry/sentry-dart/pull/1402)) | ||
- Add attachments to `Hint` ([#1404](https://github.com/getsentry/sentry-dart/pull/1404)) | ||
|
||
|