github getsentry/sentry-dart 7.0.0

latest releases: 9.8.0-beta.1, 9.8.0, 9.7.0...
2 years ago

Features

  • Platform Exception Event Processor (#1297)
  • Support failedRequestTargets for HTTP Client errors (#1285)
    • Captures errors for the default range 500-599 if captureFailedRequests is enabled
  • Sentry Isolate Extension (#1266)
  • Allow sentry user to control resolution of captured Flutter screenshots (#1288)
  • Support beforeSendTransaction (#1238)
  • Add In Foreground to App context (#1260)
  • Error Cause Extractor (#1198, #1236)
    • Add throwable to SentryException
  • Dart 3 Support (#1220)
  • Introduce Hint data bag (#1136)
  • Use Hint for screenshots (#1165)
  • Support custom units for custom measurements (#1181)

Enhancements

  • Replace toImage with toImageSync for Flutter >= 3.7 (1268)
  • Don't await FutureOr<T> if it's not a future. This should marginally improve the performance (#1310)
  • Replace StackTrace.empty with StackTrace.current (#1183)

Breaking Changes

Dart Migration guide.

Flutter Migration guide.

  • Enable enableNdkScopeSync by default (#1276)
  • Update sentry_dio to dio v5 (#1282)
  • Remove deprecated fields (#1227)
    • Remove deprecated fields from the Scope class.
      • user(SentryUser? user), using the setUser(SentryUser? user) instead.
      • attachements, using the attachments instead.
    • Remove deprecated field from the SentryFlutterOptions class.
      • anrTimeoutIntervalMillis, using the anrTimeoutInterval instead.
      • autoSessionTrackingIntervalMillis, using the autoSessionTrackingInterval instead.
  • Rename APM tracking feature flags to tracing (#1222)
    • Rename
      • enableAutoPerformanceTracking to enableAutoPerformanceTracing
      • enableOutOfMemoryTracking to enableWatchdogTerminationTracking
  • Enable APM features by default (#1217)
    • Enable by default
      • captureFailedRequests
      • enableStructuredDataTracing
      • enableUserInteractionTracing
  • Mark transaction as internal_error in case of unhandled errors (#1218)
  • Removed various deprecated fields (#1036):
    • Removed the following fields from the device context
      • language
      • timezone
      • screenResolution
      • theme
    • Removed isolate name from Dart context. It's now reported via the threads interface. It can be enabled via options.attachThreads
  • Use sentryClientName instead of sdk.identifier (#1135)
  • Refactor BindingUtils to BindingWrapper to enable the use of custom bindings (#1184)
  • Bump Flutter min to 3.0.0 and Dart to 2.17.0 (#1180)

Dependencies

Fixes

  • View hierarchy reads size from RenderBox only (#1258)
  • Try to avoid ConcurrentModificationError by not using a Future.forEach (#1259)
  • isWeb check for WASM (#1249)
  • Don't suppress error logs (#1228)
  • Fix: Remove SentryOptions related parameters from classes which also take Hub as a parameter (#816)

Don't miss a new sentry-dart release

NewReleases is sending notifications on new releases.