Skip to content

Releases: getsentry/sentry-dart

7.6.1

17 May 08:59
Compare
Choose a tag to compare

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 of contexts (#1435)

Dependencies

7.5.2

09 May 13:22
Compare
Choose a tag to compare

Fixes

  • Fix event.origin and event.environment on unhandled exceptions (#1419)
  • Fix authority redaction (#1424)

Dependencies

7.5.1

02 May 08:46
Compare
Choose a tag to compare

Fixes

  • Fallback Uri parsing to unknown if its invalid (#1414)

7.5.0

26 Apr 08:17
Compare
Choose a tag to compare

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

7.4.2

11 Apr 12:06
Compare
Choose a tag to compare

Fixes

  • Fix breadcrumbs not being sent on Android web (#1378)

7.4.1

06 Apr 17:09
Compare
Choose a tag to compare

Fixes

  • Fix Dart web builds breaking due to dart:io imports when using SentryIsolate or SentryIsolateExtension (#1371)
    • When using SentryIsolate or SentryIsolateExtension, import sentry_io.dart.
  • Export SentryBaggage (#1377)
  • Remove breadcrumbs from transaction to avoid duplication (#1366)

Dependencies

7.4.0

29 Mar 13:56
Compare
Choose a tag to compare

Features

  • SentryUserInteractionWidget: add support for PopupMenuButton and PopupMenuItem (#1361)

Fixes

  • Fix SentryUserInteractionWidget throwing when Sentry is not enabled (#1363)
  • Fix enableAutoNativeBreadcrumbs and enableNativeCrashHandling sync flags (#1367)

7.3.0

28 Mar 10:14
Compare
Choose a tag to compare

Features

  • Sanitize sensitive data from URLs (span desc, span data, crumbs, client errors) (#1327)

Dependencies

Fixes

  • Sync missing properties to the Native SDKs (#1354)

7.2.0

20 Mar 15:42
Compare
Choose a tag to compare

Features

  • sqflite Support for Flutter (#1306)

Fixes

  • DioErrorExtractor no longer extracts DioError.stackTrace which is done via DioStackTraceExtractor instead (#1344)
  • LoadImageListIntegration won't throw bad state if there is no exceptions in the event (#1347)

Dependencies

7.1.0

17 Mar 11:34
Compare
Choose a tag to compare

Features

  • Exception StackTrace Extractor (#1335)

Dependencies

Fixes

  • SentryUserInteractionWidget checks if the Elements are mounted before comparing them (#1339)