Releases: getsentry/sentry-dart
Releases Β· getsentry/sentry-dart
7.6.1
Features
- Add
sent_at
to envelope header (#1428)
Fixes
- Fix battery level conversion for iOS 16.4 (#1433)
- Adds a namespace for compatibility with AGP 8.0. (#1427)
- Avoid dependency conflict with package_info_plus v4 (#1440)
Breaking Changes
- Android
minSdkVersion
is now 19 (Flutter already defines 19-20 as best effort) - Deprecate
extra
in favor ofcontexts
(#1435)
Dependencies
7.5.2
7.5.1
7.5.0
Features
- Add
SentryIOOverridesIntegration
that automatically wrapsFile
intoSentryFile
(#1362)
import 'package:sentry_file/sentry_file.dart';
// SDK init. options
options.addIntegration(SentryIOOverridesIntegration());
- Add
enableTracing
option (#1395)- This change is backwards compatible. The default is
null
meaning existing behaviour remains unchanged (setting eithertracesSampleRate
ortracesSampler
enables performance). - If set to
true
, performance is enabled, even if notracesSampleRate
ortracesSampler
have been configured. - If set to
true
, sampler will use default sample rate of 1.0, if notracesSampleRate
is set. - If set to
false
performance is disabled, regardless oftracesSampleRate
andtracesSampler
options.
- This change is backwards compatible. The default is
// SDK init. options
options.enableTracing = true;
- Sync
connectionTimeout
andreadTimeout
to Android (#1397)
// SDK init. options
options.connectionTimeout = Duration(seconds: 10);
options.readTimeout = Duration(seconds: 10);
- Set User
name
andgeo
in native plugins (#1393)
Sentry.configureScope(
(scope) => scope.setUser(SentryUser(
id: '1234',
name: 'Jane Doe',
email: 'jane.doe@example.com',
geo: SentryGeo(
city: 'Vienna',
countryCode: 'AT',
region: 'Austria',
))),
);
import 'dart:convert';
options.beforeSend = (event, {hint}) {
final text = 'This event should not be sent happen in prod. Investigate.';
final textAttachment = SentryAttachment.fromIntList(
utf8.encode(text),
'event_info.txt',
contentType: 'text/plain',
);
hint?.attachments.add(textAttachment);
return event;
};
Fixes
- Screenshots and View Hierarchy should only be added to errors (#1385)
- View Hierarchy is removed from Web errors since we don't symbolicate minified View Hierarchy yet.
- More improvements related to not awaiting
FutureOr<T>
if it's not a future (#1385) - Do not report only async gap frames for logging calls (#1398)