Skip to content

7.5.0

Compare
Choose a tag to compare
@getsentry-bot getsentry-bot released this 26 Apr 08:17

Features

  • Add SentryIOOverridesIntegration that automatically wraps File into SentryFile (#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 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.
// SDK init. options
options.enableTracing = true;
  • Sync connectionTimeout and readTimeout to Android (#1397)
// SDK init. options
options.connectionTimeout = Duration(seconds: 10);
options.readTimeout = Duration(seconds: 10);
  • Set User name and geo 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',
      ))),
);
  • Add processor count to device info (#1402)
  • Add attachments to Hint (#1404)
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)

Dependencies