Features
- Add
SentryIOOverridesIntegrationthat automatically wrapsFileintoSentryFile(#1362)
import 'package:sentry_file/sentry_file.dart';
// SDK init. options
options.addIntegration(SentryIOOverridesIntegration());- Add
enableTracingoption (#1395)- This change is backwards compatible. The default is
nullmeaning existing behaviour remains unchanged (setting eithertracesSampleRateortracesSamplerenables performance). - If set to
true, performance is enabled, even if notracesSampleRateortracesSamplerhave been configured. - If set to
true, sampler will use default sample rate of 1.0, if notracesSampleRateis set. - If set to
falseperformance is disabled, regardless oftracesSampleRateandtracesSampleroptions.
- This change is backwards compatible. The default is
// SDK init. options
options.enableTracing = true;- Sync
connectionTimeoutandreadTimeoutto Android (#1397)
// SDK init. options
options.connectionTimeout = Duration(seconds: 10);
options.readTimeout = Duration(seconds: 10);- Set User
nameandgeoin 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)