Skip to main content

sentry_dio 10.7.0 copy "sentry_dio: ^10.7.0" to clipboard
sentry_dio: ^10.7.0 copied to clipboard

An integration which adds support for performance tracing for the Dio package.

Changelog #

10.7.0 #

Features #

  • Track slow and frozen frames and frames delay on Flutter Web, measured against a 60 Hz display by @Ortes and @buenaflor in #4165
  • Add SentryFlutter.replay.pauseTouchTracking() and resumeTouchTracking() to stop recording touch positions on sensitive screens, such as a custom PIN pad, while the masked screen recording continues. Touch tracking stays paused across new replays and after resume() until resumeTouchTracking() is called. Code that implements SentryReplay must add the two methods by @romtsn, @claude and @buenaflor in #4166
  • Link errors to their own streamed span by @buenaflor in #4173

Fixes #

  • Spans that ended before frame tracking resumed no longer report estimated frame metrics by @Ortes and @buenaflor in #4200

Dependencies #

Deps

  • chore(deps): update Android SDK to v8.66.0 by @buenaflor with @github-actions in #4226
  • chore(deps): update Cocoa SDK to v9.36.0 by @github-actions in #4227
  • chore(deps): update JavaScript SDK to v11.17.0 by @buenaflor with @github-actions in #4195
  • chore(deps): update Native SDK to v0.17.7 by @buenaflor with @github-actions in #4206

Internal Changes #

  • (craft) Re-enable pub.dev publish validation by @buenaflor with @sentry-junior in #4230
  • (flutter) Drop unneeded Material imports by @buenaflor with @sentry-junior in #4201
  • (ios) Build TestFlight sample with Xcode 27 by @philprime with @sentry-junior in #4196
  • Skip unaffected platform jobs and tidy check names by @buenaflor with @sentry-junior in #4228
  • Run JavaScript SDK updater weekly by @buenaflor with @sentry-junior in #4208
  • Remove Cursor Bugbot review guidelines by @antonis with @sentry-junior in #4205

10.6.0 #

Features #

  • Windows: run sentry-native init, scope sync and close on a background worker so they no longer freeze the app window or delay the first frame. by @palmoni5 and @Y-PLONI in #4094

Fixes #

Flutter

  • Add Dart app debug image on Android by @buenaflor with @sentry-junior in #4194
  • Cap iOS fallback refresh rate at 60Hz by @buenaflor with @sentry-junior in #4192

Other

  • (dart) Add status to streaming trace context by @buenaflor with @sentry-junior in #4193
  • (native) Fall back to XDG cache dir on Linux by @yeegz and @buenaflor in #4189
  • (replay) Route network detail through sentry-java's own hint by @hkarmoush and @buenaflor in #3980

Dependencies #

Deps

  • chore(deps): update JavaScript SDK to v11.14.0 by @github-actions in #4183
  • chore(deps): update Android SDK to v8.65.0 by @github-actions in #4184

10.5.0 #

Fixes #

Flutter

  • Parent HTTP spans to the new route after navigating away from the initial route, instead of to the app-start root / transaction until its TTFD timeout (#4154) by @buenaflor, @codex and 2 others in #4155
  • pushReplacement/replace of the current route now starts a ui.load transaction (static) or route span (streaming), like push by @buenaflor, @codex and 2 others in #4155
  • With enableAutoTransactions disabled, navigating to a named route now ends the app-start display (TTID/TTFD end as deadline_exceeded in static mode), so spans from later screens no longer attach to the app start by @buenaflor, @codex and 2 others in #4155
  • Use a writable native database directory on Windows when nativeDatabasePath isn't set, so native crashes from packaged (MSIX/Microsoft Store) apps are captured. by @lucas-zimerman and @claude in #4156

Other

  • (dart) Avoid mutating flags of captured events by @buenaflor and @claude in #4169

Dependencies #

Deps

  • chore(deps): update JavaScript SDK to v11.13.0 by @buenaflor with @github-actions in #4177
  • chore(deps): update Cocoa SDK to v9.35.0 by @github-actions in #4176

Internal Changes #

  • (agents) Disable AI attribution in commits by @buenaflor with @sentry-junior in #4170
  • (android) Upgrade Flutter example toolchain by @buenaflor in #4171

10.4.0 #

Fixes #

  • (flutter) Fetch sentry-native as a release zip on Windows by @lucas-zimerman and @claude in #4110
  • (link) Set span attributes on creation by @awishere, @codex and @buenaflor in #4044
  • (replay) Mask correctly during zoom page transitions by @lucas-zimerman, @claude and @buenaflor in #4130

Enhancements #

  • Lower the minimum Android SDK version for Flutter from API 26 to API 24, matching Flutter's default minSdk. by @buenaflor and @lucas-zimerman with @sentry-junior in #4150

Dependencies #

Deps

  • chore(deps): update JavaScript SDK to v11.12.0 by @buenaflor and @codex with @github-actions in #4161
  • chore(deps): update Cocoa SDK to v9.34.0 by @buenaflor and @codex with @github-actions in #4162
  • chore(deps): update Android SDK to v8.64.0 by @buenaflor and @codex with @github-actions in #4163
  • chore(deps): update Native SDK to v0.17.6 by @buenaflor with @github-actions in #4144

Internal Changes #

  • (release) Bump craft to 3.9.0 and update config by @BYK with @sentry-junior in #4140
  • (warden) Enable incremental review by @Jeffreyhung with @sentry-junior in #4145
  • Ask Junior to recheck native SDK bumps by @buenaflor with @sentry-junior in #4149
  • Expand platform and tooling ignore rules by @philprime in #4148
  • Point Sentry Conventions links to conventions.sentry.dev by @cleptric and @claude in #4146

10.3.0 #

Features #

Flutter

  • Add experimental Session Replay support for Flutter Web with widget masking. Opt in with options.replay.enableWebReplay = true along with replay.sessionSampleRate or replay.onErrorSampleRate. Requires the CanvasKit or Skwasm renderer. SentryFlutter.replay start/stop/flush also work on web, and the Dart scope (user, tags, extras, contexts, breadcrumbs) now syncs to the JS SDK on web (#2897) by @lucas-zimerman in #4059
  • Add addUserInteractionWidget to SentryFlutterOptions to track taps on widgets the SDK doesn't recognize, like those from material_ui and cupertino_ui. Tooltip labels now come from RawTooltip, so material_ui tooltips get labels too. by @dawid-niedzwiecki in #4069

Fixes #

  • (dart) Count streamed spans in client reports by @sentry-junior in #4097
  • (flutter) Use static SwiftPM binaries by @philprime in #4118

Dependencies #

Deps

  • chore(deps): update Cocoa SDK to v9.32.0 by @github-actions in #4128
  • chore(deps): update Native SDK to v0.17.5 by @github-actions in #4127
  • chore(deps): update Android SDK to v8.62.0 by @github-actions in #4124

Internal Changes #

  • (flutter) Use Cocoa internal serializer by @philprime in #4100
  • Use dark-mode-aware Sentry logo in READMEs by @sentry-junior in #4123

10.2.0 #

Features #

  • Report the generation of the cellular network technology in device.connection_effective_type on Android and iOS, for example 4g or 5g. On Android 11 and earlier, the app must have the READ_PHONE_STATE permission. by @alwx in #4066

Fixes #

Flutter

  • Support JNI 1.1 by @Carapacik in #4099
  • Allow empty associatedEventId in SentryFeedbackForm by @lucas-zimerman in #4108

Other

  • (ios) Avoid deprecated windows in refresh rate by @ananyateklu in #4111

Dependencies #

Deps

  • chore(deps): update Android SDK to v8.61.1 by @github-actions in #4114
  • chore(deps): update Cocoa SDK to v9.31.0 by @github-actions in #4112
  • chore(deps): update Native SDK to v0.17.4 by @github-actions in #4093

Internal Changes #

  • Pin Java 17 for Android updater by @buenaflor in #4113

10.1.0 #

Features #

  • Session Replays on iOS now include trace IDs, so they can be found by searching for a trace ID in Sentry by @antonis in #4083

Fixes #

  • Deobfuscate the Java frames of Dart-captured PlatformException events on Android by attaching the ProGuard debug image, and keep existing debug images when loading native ones. by @xelarich in #4081
  • (app-start) Keep builds and deduplicate TTFD by @buenaflor in #4079
  • (flutter) Don't report feedback success when send fails by @lucas-zimerman in #4043
  • (replay) Link errors to manual replays by @buenaflor in #4078

Dependencies #

Deps

  • chore(deps): update Android SDK to v8.61.0 by @github-actions in #4090
  • chore(deps): update Cocoa SDK to v9.30.2 by @github-actions in #4089
  • chore(deps): update Native SDK to v0.17.3 by @github-actions in #4082

Internal Changes #

  • Remove Collect App Metrics jobs by @buenaflor in #4091

10.0.0 #

Version 10.0.0 marks a major release of the Sentry Dart/Flutter SDKs containing breaking changes.

How To Upgrade #

Please carefully read through the migration guide in the Sentry docs on how to upgrade from version 9 to version 10

Breaking Changes #

  • Default to streaming traces (SentryTraceLifecycle.stream), sending spans as they finish. Use Sentry.startSpan instead of Sentry.startTransaction and ISentrySpan.startChild, which are no-ops in streaming mode. Set options.traceLifecycle = SentryTraceLifecycle.static to keep using the transaction APIs. (#4057)
  • Require Dart 3.12.0 or newer and Flutter 3.44.0 or newer. (#3784, 98581ac)
  • Raise the minimum Android SDK version for Flutter from API 21 to API 26. Set your app's Android minSdk to 26 or higher. (#4049)
  • Remove CocoaPods support. Flutter apps targeting Apple platforms must use Swift Package Manager. (#3879)
  • Remove enableLogs and enableMetrics. Logs and metrics are always enabled. The logging integration forwards Sentry logs by default; adjust minSentryLogLevel or set it to Level.OFF to disable forwarding. (#3983)
  • Remove enableStandaloneAppStartTracing. When tracing is enabled, app start is always reported as a standalone app.start root on Android and iOS. (#3981)
  • Make native failed-request capture opt-in. (#3885)
  • Run error sampling after event processors and beforeSend. These callbacks now also run for events that are subsequently sampled out. (#3955)
  • Require traceId on SentryLog, make logger methods return void, and remove SentryLogAttribute. (#3842, #3852, #3843)
  • Add a Hint parameter to the before-send callbacks for logs, metrics, and spans. (#3847)
  • Make feature flags hub/scope-based. (#3848)
  • Remove SDK profiling and deprecated performance collectors. (#3891, #3850)
  • Remove deprecated copyWith APIs and protocol clones, and make clone() internal. (#3877, #3845)
  • Remove the deprecated SentryFeedbackWidget. (#3844)
  • Replace options.log with internal logging and make BindingWrapper and bindingUtils internal. (#3932, #3940)
  • Align span attributes with Sentry Conventions and remove file.async from file instrumentation. (#3805, #3841)
  • Use Breakpad as the default native crash backend on Windows and Linux. (#4045)

Features #

  • Add manual Session Replay controls on Android and iOS through SentryFlutter.replay: start, startBuffering, pause, resume, stop, and flush. Explicitly started replays work even when both automatic sample rates are 0. (#4010)
  • Improve startup frame spans, and remove the pre-init and Sentry initialization spans from startup traces. (#4018, 6aad048)
  • Include sampled-out errors in release health, and report unhandled Flutter errors as unhandled sessions rather than crashes. (#4008, #4007)
  • Mask SensitiveContent by default in Session Replay. (#3973)
  • Graduate mature v10 APIs from experimental status. (#3940)

Enhancements #

  • Migrate the Android plugin to Flutter’s built-in Kotlin support. (#3961)

Fixes #

  • Isolate failures in user-provided callbacks. (#4026)
  • Default event trace context status to ok while preserving explicit span statuses. (#4035)
  • Exclude later frame builds from startup timing. (8ee2d41)
  • Align HTTP client error type and value. (#3934)

Dependencies #

  • Update Sentry Cocoa to 9.27.0. (#4006)
  • Update Sentry JavaScript to 11.0.0, preserving the default web privacy settings and aligning unhandled session reporting. (#4032)
  • Use jni >=1.0.0 <1.1.0 and jnigen 0.17.0. (#3931)

10.0.0-rc.2 #

Breaking Changes #

  • Default traceLifecycle to SentryTraceLifecycle.stream, sending spans as they finish instead of as transactions. Errors, messages, and feedback captured inside an active streaming span now link to it. Set options.traceLifecycle = SentryTraceLifecycle.static to keep the previous transaction-based behavior. (#4057)

10.0.0-rc.1 #

Breaking Changes #

  • Raise the minimum Android SDK version for Flutter from API 21 to API 26. Set your app's Android minSdk to 26 or higher. (#4049)

Fixes #

  • Default event trace context status to ok while preserving explicit span statuses. (#4035)
  • Restore Android replay configuration across recorder restarts and prevent overlapping capture schedulers. (#4037)

10.0.0-rc.0 #

Breaking Changes #

  • Require Dart 3.12.0 or newer and Flutter 3.44.0 or newer. (#3784)
  • Remove CocoaPods support. Flutter apps targeting Apple platforms must use Swift Package Manager. (#3879)
  • Remove enableLogs and enableMetrics. Logs and metrics are always enabled. The logging integration forwards Sentry logs by default; adjust minSentryLogLevel or set it to Level.OFF to disable forwarding. (#3983)
  • Remove enableStandaloneAppStartTracing. When tracing is enabled, app start is always reported as a standalone app.start root on Android and iOS. (#3981)
  • Make native failed-request capture opt-in. (#3885)
  • Run error sampling after event processors and beforeSend. These callbacks now also run for events that are subsequently sampled out. (#3955)
  • Require traceId on SentryLog, make logger methods return void, and remove SentryLogAttribute. (#3842, #3852, #3843)
  • Add a Hint parameter to the before-send callbacks for logs, metrics, and spans. (#3847)
  • Make feature flags hub/scope-based. (#3848)
  • Remove SDK profiling and deprecated performance collectors. (#3891, #3850)
  • Remove deprecated copyWith APIs and protocol clones, and make clone() internal. (#3877, #3845)
  • Remove the deprecated SentryFeedbackWidget. (#3844)
  • Replace options.log with internal logging and make BindingWrapper and bindingUtils internal. (#3932, #3940)
  • Align span attributes with Sentry Conventions and remove file.async from file instrumentation. (#3805, #3841)
  • Use Breakpad as the default native crash backend on Windows and Linux. (#4045)

Features #

  • Add manual Session Replay controls on Android and iOS through SentryFlutter.replay: start, startBuffering, pause, resume, stop, and flush. Explicitly started replays work even when both automatic sample rates are 0. (#4010)
  • Add app-start extension APIs and lifecycle-specific span getters, and improve startup frame spans. (#3896, #3918, #4018)
  • Include sampled-out errors in release health, and report unhandled Flutter errors as unhandled sessions rather than crashes. (#4008, #4007)
  • Mask SensitiveContent by default in Session Replay. (#3973)
  • Record Android replay segment names and span segment-name sources. (#3897, #3904)
  • Support array attributes in telemetry and attach feature flags to the hub span. (#3778, #3806)
  • Graduate span streaming and other mature v10 APIs from experimental status. (#3756, #3940)

Enhancements #

  • Improve Android scope synchronization and replay screenshot transfer performance. (#3924)
  • Support 64-bit integer values from Sentry Native. (#3760)
  • Migrate the Android plugin to Flutter’s built-in Kotlin support. (#3961)

Fixes #

  • Isolate failures in user-provided callbacks. (#4026)
  • Close background JNI workers when their owning isolate exits while preserving native reporting across cached-engine view detachment and reattachment. (#3987)
  • Await in-flight replay captures during scheduler shutdown and skip new captures while the app is not resumed. (#3935)
  • Prevent delayed-frame state errors and guard script completion. (#3876, #3912)
  • Add the app-start screen attribute and exclude later frame builds from startup timing. (#3893, 8ee2d41)
  • Align HTTP client error type and value. (#3934)
  • Accept double timestamps in Android network breadcrumbs. (#3859)
  • Read normalized rate-limit headers and report missing metric byte outcomes. (#3883, #3905)

Dependencies #

  • Update Sentry Android to 8.56.0. (#4015)
  • Update Sentry Cocoa to 9.27.0. (#4006)
  • Update Sentry Native to 0.16.6. (#4013)
  • Update Sentry JavaScript to 11.0.0, preserving the default web privacy settings and aligning unhandled session reporting. (#4032)
  • Use jni >=1.0.0 <1.1.0 and jnigen 0.17.0. (#3931)

10.0.0-beta.0 #

Features #

  • (flutter) Default desktop to Breakpad by @buenaflor in #4045

Dependencies #

  • (flutter) Bump JS to 11.0.0 by @buenaflor in #4032

10.0.0-alpha.7 #

Features #

  • (flutter) Revamp app-start frame spans by @buenaflor in #4018

Fixes #

  • Isolate user callback failures by @sentry-junior in #4026

10.0.0-alpha.6 #

Features #

Flutter

  • Add manual Session Replay controls on Android and iOS through SentryFlutter.replay: start, startBuffering, pause, resume, stop, and flush. Explicitly started replays work even when both automatic sample rates are 0. by @buenaflor in #4010

Fixes #

Flutter

  • Close background JNI workers when their owning isolate exits, while preserving native reporting across cached-engine view detachment and reattachment. by @lucas-zimerman in #3987
  • Await in-flight replay captures during scheduler shutdown and skip new captures while the app is not resumed. by @lucas-zimerman in #3935

Dependencies #

Flutter

  • Update Sentry Android from 8.55.0 to 8.56.0 by @buenaflor in #4015
  • Update Sentry Native from 0.16.4 to 0.16.6 by @github-actions in #3998 and #4013

Internal Changes #

  • Collect Apple framework symbols by @sentry-junior in #4003

10.0.0-alpha.5 #

Features #

Flutter

  • Unsampled errors affect release health by @buenaflor in #4008
  • Unhandled Flutter errors do not mark sessions as crashed but unhandled instead by @buenaflor in #4007

Internal Changes #

  • (deps) Bump Android 8.55.0, Cocoa 9.27.0 by @buenaflor in #4006

10.0.0-alpha.4 #

Features #

  • Remove the enableLogs and enableMetrics options. Logs and metrics are now always enabled and can no longer be disabled through SentryOptions. Remove any options.enableLogs / options.enableMetrics assignments from your SDK init. If you use the logging integration, it now forwards log records as Sentry logs as soon as it is added — raise minSentryLogLevel, or set it to Level.OFF, to opt out. by @buenaflor in #3983
  • enableStandaloneAppStartTracing is removed. App start is always a standalone app.start root on Android and iOS when tracing is enabled. The legacy ui.load-attached app start path is gone. by @buenaflor in #3981
  • (replay) Mask SensitiveContent by default by @buenaflor in #3973

Fixes #

  • Sampling now runs after beforeSend instead of before it, so ignoreErrors, ignored exception types, event processors and beforeSend all take precedence over the sampleRate decision. An event dropped by beforeSend is now reported as a before_send discard rather than a sample_rate one, and beforeSend now runs for events that are later sampled out. (#3855) by @buenaflor in #3955
  • (http) Align HTTP client error type and value by @buenaflor in #3934

Internal Changes #

  • Migrate the Android plugin to Flutter's built-in Kotlin. sentry_flutter no longer applies the Kotlin Gradle Plugin itself, which silences Flutter 3.44's warning about plugins applying KGP and unblocks apps moving to AGP 9. by @buenaflor in #3961

10.0.0-alpha.3 #

Features #

Dart

  • Align database, HTTP, app-start, and trace-lifecycle span attributes with Sentry Conventions by @buenaflor in #3805

Flutter

  • Add standalone app-start tracing, extension APIs, and lifecycle-specific span getters by @buenaflor in #3896 and #3918
  • Make native failed-request capture opt-in by @buenaflor in #3885
  • Remove CocoaPods support in favor of Swift Package Manager by @buenaflor in #3879
  • Record Android replay segment names and span segment-name sources by @buenaflor in #3897 and #3904

Enhancements #

  • Improve Android scope synchronization and replay screenshot transfer performance by @buenaflor in #3924

Fixes #

Flutter

  • Prevent delayed-frame state errors and guard script completion by @muhammadkamel and @buenaflor in #3876 and #3912
  • Add the app-start screen attribute by @buenaflor in #3893

Other

  • Accept double timestamps in Android network breadcrumbs by @aqrc in #3859
  • Read normalized rate-limit headers by @sentry-junior in #3883
  • Add missing metric byte outcomes by @buenaflor in #3905

Dependencies #

Flutter

  • Update Android SDK versions through 8.51.0 by @github-actions in #3895, #3921, and #3938
  • Update Native SDK versions through 0.16.1 by @github-actions in #3862, #3910, #3925, and #3937
  • Relax the JNI constraint and update jnigen to 0.17.0 by @buenaflor in #3931

Internal Changes #

  • Remove SDK profiling by @buenaflor in #3891
  • Remove deprecated copyWith APIs by @buenaflor in #3877
  • Replace options.log with internalLogger by @buenaflor in #3932
  • Graduate mature v10 APIs and make BindingWrapper and bindingUtils internal by @buenaflor in #3940
  • Share Darwin plugin sources by @buenaflor in #3922
  • Move the gRPC MockHub into _sentry_testing by @lucas-zimerman in #3908
  • Pin Flutter development dependencies by @buenaflor in #3913
  • Add Supabase and gRPC SDKs to Craft by @buenaflor in #3884

10.0.0-alpha.2 #

Features #

  • (telemetry) Align span attributes with Sentry Conventions by @buenaflor in #3805
  • Add feature flags to hub span by @denrase in #3806
  • (logs) Add Hint to beforeSend for logs, metrics, and spans by @buenaflor in #3847
  • (logs) Enable logs by default by @buenaflor in #3846

Internal Changes #

  • (logs) Make traceId required on SentryLog by @buenaflor in #3842
  • Make clone() internal and remove deprecated protocol clones by @buenaflor in #3845
  • (dart) Make feature flags hub/scope-based by @buenaflor in #3848
  • (file) Remove file.async attributes from instrumentation by @buenaflor in #3841
  • (logs) Make logger methods return void by @buenaflor in #3852
  • (logs) Remove deprecated SentryLogAttribute by @buenaflor in #3843
  • Remove deprecated performance collectors by @buenaflor in #3850
  • (feedback) Remove deprecated SentryFeedbackWidget by @buenaflor in #3844

10.0.0-alpha.1 #

Features #

Dart

  • Add array attributes to telemetry by @buenaflor in #3778
  • Mark span streaming API as non-experimental by @buenaflor in #3756

Other

  • (flutter) Support SwiftPM on Flutter 3.44+ by @buenaflor in #3784

Enhancements #

  • (flutter) Support int64 values from sentry-native by @buenaflor in #3760

9.30.1 #

Fixes #

  • (flutter) Restore Android replay config by @buenaflor in #4037

9.30.0 #

Fixes #

Flutter

  • Fix an Android native/GPU memory leak caused by the background JNI worker outliving its Flutter engine, while preserving native reporting across cached-engine view detachment and reattachment. by @lucas-zimerman in #3987
  • Await in-flight replay capture on scheduler stop by @lucas-zimerman in #3935

Dependencies #

Deps

  • chore(deps): Update Android SDK to v8.56.0 by @buenaflor in #4015
  • chore(deps): update Native SDK to v0.16.6 by @github-actions in #4013

Internal Changes #

  • (symbols) Collect Apple framework symbols by @sentry-junior in #4003

9.29.0 #

Dependencies #

Deps

  • chore(deps): Update Android SDK to v8.54.0 by @buenaflor in #4001
  • chore(deps): update Native SDK to v0.16.5 by @github-actions in #3998

9.28.0 #

Features #

  • (dart) Add sentry.trace_lifecycle span attribute by @buenaflor in #3985
  • Copy app.vitals.start.screen onto standalone app.start children so app start spans can be drilled down by launch screen. by @buenaflor in #3988
  • enableLogs and enableMetrics now only control automatic collection. Logs and metrics sent through Sentry.logger and Sentry.metrics are always captured, regardless of these options. by @buenaflor in #3982

Fixes #

Dart

  • Record client report outcome for dropped spans by @lucas-zimerman in #3971
  • Read Windows total physical memory via the native GlobalMemoryStatusEx API instead of spawning the deprecated wmic.exe (or PowerShell) process. by @cf-rhett in #3894

Flutter

  • Narrow Android R8 keep rule from io.sentry.** to bound classes by @lucas-zimerman in #3972
  • Skip screenshot capture of a zero-sized boundary by @buenaflor in #3954
  • Support AGP 9's built-in Kotlin by @TheoGermain in #3970

Dependencies #

  • chore(deps): update Native SDK to v0.16.4 by @github-actions in #3986

9.27.0 #

Features #

  • Add HTTP request/response header and body capture for Session Replay network breadcrumbs, gated by networkDetailAllowUrls/networkDetailDenyUrls. by @lucas-zimerman in #3875

Fixes #

  • (dart) Handle HTTP 413 in HttpTransport by @lucas-zimerman in #3951

Dependencies #

Deps

  • chore(deps): update Android SDK to v8.53.0 by @github-actions in #3963
  • chore(deps): update Native SDK to v0.16.2 by @github-actions in #3952

Internal Changes #

  • Replace curl-pipe-bash with action-setup-cli for Sentry CLI setup by @oioki in #3949
  • Remove secrets: inherit from changelog-preview workflow by @oioki in #3946

9.26.0 #

Features #

Flutter

  • Standalone app start tracing (experimental) by @buenaflor in #3896 and #3918
    • App start is reported as its own App Start root (app.start) spanning process start to the first frame, instead of being nested under the synthetic initial ui.load. This gives startup its own lifecycle and sampling decision.
    • Opt in via options.enableStandaloneAppStartTracing. Requires tracing, is supported on Android and iOS, and works with both SentryTraceLifecycle.static and SentryTraceLifecycle.stream.
    • Extend the app start past the first frame with SentryFlutter.extendAppStart() and SentryFlutter.finishExtendedAppStart(), so startup work that finishes later — remote config, auth restore, flag hydration — is part of the reported duration.
    • Always finish what you extend. While an extension is open the app start stays open too; if it hits its 30 second deadline first, the extension is dropped and the reported duration falls back to the first frame.
// Opt in during SDK init and extend the app start across your startup work.
await SentryFlutter.init(
  (options) {
    options.dsn = 'https://example@sentry.io/add-your-dsn-here';
    options.tracesSampleRate = 1.0;
    options.enableStandaloneAppStartTracing = true;
  },
  appRunner: () async {
    // Extend before the first frame renders.
    SentryFlutter.extendAppStart();
    runApp(const MyApp());

    try {
      await remoteConfig.fetchAndActivate();
      await auth.restoreSession();
    } finally {
      // Releases the app start to report, measured up to here.
      await SentryFlutter.finishExtendedAppStart();
    }
  },
);
  • To nest your own spans under the extension, take the span itself — SentryFlutter.getExtendedAppStartSpan() on the static lifecycle, SentryFlutter.getExtendedAppStartSpanV2() on the streaming one. Each returns null on the other lifecycle and once the extension has ended. Finishing the span completes the extension, so there is no need to also call finishExtendedAppStart().
// Static lifecycle.
final appStart = SentryFlutter.getExtendedAppStartSpan();
final child = appStart?.startChild('app.init', description: 'Load config');
try {
  await loadConfig();
} finally {
  await child?.finish();
}

// Streaming lifecycle. Only pass a parent when there is one — passing `null`
// starts a root span instead of a child.
final appStartV2 = SentryFlutter.getExtendedAppStartSpanV2();
if (appStartV2 != null) {
  await Sentry.startSpan(
    'Load config',
    (span) => loadConfig(),
    parentSpan: appStartV2,
  );
} else {
  await loadConfig();
}

Fixes #

  • Read normalized rate limit headers by @sentry-junior in #3883

Enhancements #

  • (flutter) Speed up Android scope sync and replay capture by @buenaflor in #3924

Dependencies #

Deps

  • chore(deps): update Android SDK to v8.45.0 by @github-actions in #3790
  • chore(deps): update Native SDK to v0.15.1 by @github-actions in #3757

Flutter

  • Bump jni to 1.0.0 and jnigen to 0.16.0 in v10 by @buenaflor in #3765
  • Bump sentry-cocoa to 9.17.1 in v10 by @buenaflor in #3764

Internal Changes #

  • (flutter) Remove flaky frames measurement tests by @buenaflor in #3783
  • chore(deps): update Native SDK to v0.16.1 by @github-actions in #3937
  • chore(deps): update Android SDK to v8.51.0 by @github-actions in #3938

Internal Changes #

  • (deps) Pin Flutter development dependencies by @buenaflor in #3913
  • (grpc) Move MockHub to _sentry_testing package by @lucas-zimerman in #3908

9.25.0 #

Features #

  • (replay) Record segment names on Android by @buenaflor in #3897
  • (tracing) Emit segment name source by @buenaflor in #3904

Fixes #

Flutter

  • Guard script completion by @buenaflor in #3912
  • Add app start screen attribute by @buenaflor in #3893
  • Prevent StateError when delayed frames list is empty by @muhammadkamel in #3876

Other

  • (metrics) Add missing metric byte outcomes by @buenaflor in #3905

Dependencies #

Deps

  • chore(deps): update Native SDK to v0.15.4 by @github-actions in #3910
  • chore(deps): update Android SDK to v8.49.0 by @github-actions in #3895
  • chore(deps): update Cocoa SDK to v8.58.4 by @github-actions in #3864

Internal Changes #

  • (dart) Accept beta wasm function name by @sentry-junior in #3898

9.24.0 #

Features #

  • Add feature flags to hub span by @denrase in #3806

Fixes #

  • (replay) Accept Double timestamps in Android network breadcrumb conversion by @aqrc in #3859

9.23.0 #

Features #

Dart

  • Add array attributes to telemetry by @buenaflor in #3778
  • Mark span streaming API as non-experimental by @buenaflor in #3756

Other

  • (flutter) Support SwiftPM on Flutter 3.44+ by @buenaflor in #3784
  • (grpc) Add integration support for GRPC by @lucas-zimerman in #3721
  • (tracing) Simplify span v2 status to ok/error by @buenaflor in #3840
  • Report blocked_main_thread on streaming spans by @buenaflor in #3821

Fixes #

  • (rate-limiting) Honor span and feedback rate limits by @buenaflor in #3809
  • Correct feature flag scope buffer updates by @denrase in #3797

Enhancements #

  • (flutter) Support int64 values from sentry-native by @buenaflor in #3760

Dependencies #

Deps

  • chore(deps): update Android SDK to v8.45.0 by @github-actions in #3790
  • chore(deps): update Native SDK to v0.15.1 by @github-actions in #3757

Flutter

  • Bump jni to 1.0.0 and jnigen to 0.16.0 in v10 by @buenaflor in #3765
  • Bump sentry-cocoa to 9.17.1 in v10 by @buenaflor in #3764
  • chore(deps): update Android SDK to v8.47.0 by @github-actions in #3849
  • chore(deps): update Native SDK to v0.15.2 by @github-actions in #3785

Internal Changes #

  • (flutter) Remove flaky frames measurement tests by @buenaflor in #3783
  • (skills) Expand test-guidelines and drop stale deps by @buenaflor in #3807
  • Add PR template checkbox for cross sdk review on public API changes by @antonis in #3822
  • Block manual CHANGELOG.md edits by @buenaflor in #3810
  • Fix Dependabot pub paths and pin GitHub Action by @buenaflor in #3804
  • Add AI Use section to CONTRIBUTING.md by @christophaigner in #3803

9.22.0 #

Features #

  • (flutter) Add replay trace ID sync for Android by @buenaflor in #3744

Fixes #

  • (dart) Add missing log byte outcomes by @buenaflor in #3745
  • (flutter) Add replay IDs to span telemetry by @buenaflor in #3739

Enhancements #

  • (dart) Add span v2 envelope ingest_settings metadata by @buenaflor in #3700

Dependencies #

Deps

  • chore(deps): update Android SDK to v8.43.2 by @github-actions in #3755
  • chore(deps): update Native SDK to v0.14.2 by @github-actions in #3683

9.21.0 #

Features #

  • Rename SentryFeedbackWidget to SentryFeedbackForm by @denrase in #3702
    • SentryFeedbackWidget is deprecated and will be removed in the next major version. Use SentryFeedbackForm instead.

Fixes #

Dart

  • Make sentryOnError synchronous in runZonedGuarded by @theprantadutta in #3697
  • Route SDK diagnostic logs to browser console on web by @theprantadutta in #3698

Flutter

  • Forward sample rate to native SDKs by @buenaflor in #3722
  • Release Android JNI refs by @buenaflor in #3712
  • Release replay JNI refs by @buenaflor in #3699

Enhancements #

Flutter

  • Move Android JNI work to core worker to avoid work on main isolate by @buenaflor in #3713
  • Optimize Android scope sync by @buenaflor in #3708

Dependencies #

Deps

  • chore(deps): update Cocoa SDK to v8.58.3 by @github-actions in #3726
  • chore(deps): update Android SDK to v8.43.0 by @github-actions in #3727

Internal Changes #

  • (flutter) Align CI with stable SwiftPM defaults by @buenaflor in #3710

9.20.0 #

Features #

  • (span-first) Add transaction and app start type span attributes by @buenaflor in #3678
  • Prevent cross-organization trace continuation by @antonis in #3567
    • By default, the SDK now extracts the organization ID from the DSN (e.g. o123.ingest.sentry.io) and compares it with the sentry-org_id value in incoming baggage headers. When the two differ, the SDK starts a fresh trace instead of continuing the foreign one. This guards against accidentally linking traces across organizations.
    • New option strictTraceContinuation (default false): when enabled, both the SDK's org ID and the incoming baggage org ID must be present and match for a trace to be continued. Traces with a missing org ID on either side are rejected.
    • New option orgId: allows explicitly setting the organization ID for self-hosted and Relay setups where it cannot be extracted from the DSN.
    • Options are also applied to the native Android SDK. On iOS, only the Dart layer enforces strict trace continuation.

Fixes #

Flutter

  • Avoid JNI callbacks for Android scope sync by @denrase in #3676
  • Send frame delay in seconds by @buenaflor in #3677

Dependencies #

Deps

  • chore(deps): update Android SDK to v8.41.0 by @github-actions in #3687
  • chore(deps): update Cocoa SDK to v8.58.2 by @github-actions in #3664
  • chore(deps): update Native SDK to v0.13.8 by @github-actions in #3667

Internal Changes #

  • Remove collection runtime dependency by @buenaflor in #3680
  • Notify linked issues on release by @buenaflor in #3685
  • Enforce conventional commit format for PR titles by @buenaflor in #3666

9.19.0 #

Features #

  • Span-first trace lifecycle (experimental) by @buenaflor in #3659
    • Streams spans to Sentry as each one finishes instead of buffering them into a transaction envelope at the root.
    • Opt in via options.traceLifecycle. The classic transaction-based SentryTraceLifecycle.static remains the default.
    • In stream mode, create spans with the new Sentry.startSpan / Sentry.startSpanSync APIs — the transaction APIs (Sentry.startTransaction, ISentrySpan.startChild) do nothing in this mode.
    • Auto-instrumentations (frames, app start, TTID/TTFD, navigation, user interaction, HTTP, databases, GraphQL link) automatically switch to the streaming API when enabled.
// Opt in during SDK init.
await SentryFlutter.init((options) {
  options.dsn = 'https://example@sentry.io/add-your-dsn-here';
  options.tracesSampleRate = 1.0;
  options.traceLifecycle = SentryTraceLifecycle.stream;
});

// Async work — the span ends and is sent when the future completes.
final order = await Sentry.startSpan('checkout', (span) async {
  span.setAttribute('cart.item_count', SentryAttribute.int(cart.items.length));

  // Automatically parents to 'checkout' via zones.
  final payment = await Sentry.startSpan('process-payment', (span) {
    return paymentService.charge(cart.total);
  });

  return orderService.create(cart, payment: payment);
});

// Sync variant.
final total = Sentry.startSpanSync('calculate-total', (span) {
  return cart.items.fold<double>(0, (sum, item) => sum + item.price);
});

Fixes #

  • (feedback) Show success message after feedback submission by @denrase in #3609

Enhancements #

  • (navigator-observer) enableNewTraceOnNavigation is now opt-in by @buenaflor in #3657
    • SentryNavigatorObserver no longer generates a fresh trace id on every push/pop/replace by default. One trace per session (the previous opt-in behavior) is now the default and preserves trace continuity across navigations.
    • If you relied on the old behavior, opt back in explicitly:
SentryNavigatorObserver(
  enableNewTraceOnNavigation: true,
);

Dependencies #

  • chore(deps): update Android SDK to v8.39.1 by @github-actions in #3646

Internal Changes #

Deps

  • Bump actions/create-github-app-token from 3.0.0 to 3.1.1 by @dependabot in #3652
  • Bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.25.2 to 2.25.4 by @dependabot in #3655
  • Bump actions/cache from 5.0.4 to 5.0.5 by @dependabot in #3656

Other

  • Integrate Warden for AI-powered PR code review by @buenaflor in #3651

9.18.0 #

Dependencies #

  • chore(deps): update Native SDK to v0.13.7 by @github-actions in #3645

Internal Changes #

  • (flutter-example) Fix macOS SPM build and bump AGP to 8.6.0 by @buenaflor in #3644
  • (supabase) Fix flaky error client test for postgrest retry by @buenaflor in #3643
  • Add SDK features for beforeSend callbacks by @buenaflor in #3608
  • Add dep update pattern to Dependencies changelog category by @buenaflor in #3642
  • Replace Danger with release.yml changelog policy by @buenaflor in #3641

9.17.0 #

Fixes #

  • Revert fetching sentry-native from release zip, use git source instead to fix permission issues (#3630)

Dependencies #

9.16.1 #

  • Experimental span-streaming API with startSpan

Fixes #

  • Sentry Native not building due to failing git clone (#3621)

9.16.0 #

Dependencies #

9.15.0 #

Fixes #

  • Stop re-triggering hitTest in SentryUserInteractionWidget on pointerUp (#3540)
  • Use seconds since the Unix epoch for log.timestamp (#3558)
  • Implement SqfliteDatabaseExecutor to prevent TypeError on getVersion/setVersion (3539)

Dependencies #

9.14.0 #

Features #

  • Add enableTombstone option for improved native crash reporting on Android 12+ (#3526)
    • When enabled, uses Android's ApplicationExitInfo.REASON_CRASH_NATIVE to capture native crashes with more detailed thread information
    • Disabled by default

Fixes #

  • Dont guard user attributes behind sendDefaultPii for logs and metrics (#3524)

Dependencies #

Internal Changes
  • Add sentry.javascript.browser.flutter sdk name for native js errors (#3525)
## 9.13.0

Features #

  • Synchronize traceId to native SDKs (#3507)
    • Native events (e.g. from Android or iOS) such as errors, logs, and spans now share the same trace as Dart events, enabling unified trace views across layers

Dependencies #

Internal Changes
  • Add SDK features metadata for SPM vs CocoaPods tracking (#3508)
## 9.12.0

Dependencies #

9.11.0 #

Features #

  • Trace connected metrics (#3450)
    • This feature is enabled by default.
    • To send metrics use the following APIs:
      • Sentry.metrics.gauge(...)
      • Sentry.metrics.count(...)
      • Sentry.metrics.distribution(...)
    • For more details read the Flutter metrics documentation.
  • Add captureNativeFailedRequests option for iOS/macOS (#3472)
    • This option allows controlling native HTTP error capturing independently from captureFailedRequests.
    • When null (the default), it falls back to captureFailedRequests for backwards compatibility.
    • Set to false to disable native failed request capturing while keeping Dart-side capturing enabled.

Fixes #

  • Catch client exceptions in HttpTransport.send (#3490)

Dependencies #

Internal Changes
  • Refactor Logging API to be consistent with Metrics (#3463)
  • Remove deprecated beforeMetricCallback from options (#3484)
  • Add span factory to allow swappable span backends in integrations (#3488)
## 9.11.0-beta.2

Fixes #

  • Catch client exceptions in HttpTransport.send (#3490)

Internals #

  • Remove deprecated beforeMetricCallback from options (#3484)
  • Add span factory to allow swappable span backends in integrations (#3488)

9.11.0-beta.1 #

Features #

  • Trace connected metrics (#3450)
    • This feature is enabled by default.
    • To send metrics use the following APIs:
      • Sentry.metrics.gauge(...)
      • Sentry.metrics.count(...)
      • Sentry.metrics.distribution(...)
  • Add captureNativeFailedRequests option for iOS/macOS (#3472)
    • This option allows controlling native HTTP error capturing independently from captureFailedRequests.
    • When null (the default), it falls back to captureFailedRequests for backwards compatibility.
    • Set to false to disable native failed request capturing while keeping Dart-side capturing enabled.

Enhancements #

  • Refactor Logging API to be consistent with Metrics (#3463)

Dependencies #

9.10.0 #

Fixes #

  • Kotlin language version handling in Android (#3436)

Enhancements #

  • Replace log batcher with telemetry processor (#3448)

Dependencies #

9.9.2 #

Fixes #

  • Android not sending events when autoInitializedNativeSdk is disabled (#3420)

9.9.1 #

Fixes #

  • Cold/warm start spans not attaching if TTFD takes more than 3 seconds to report (#3404)
  • Ensure that the JNI ScopesAdapter instance is released after use (#3411)

9.9.0 #

Features #

  • Add Sentry.setAttributes and Sentry.removeAttribute (#3352)
    • These attributes are set at the scope level and apply to all logs (and later to metrics and spans).
    • When a scope attribute conflicts with a log-level attribute, the log-level attribute always takes precedence.
  • Sentry Supabase Integration (#2913)
    • Adds the sentry_supabase package to instrument supabase with Sentry breadcrumbs, traces and errors.

Fixes #

  • Added consumerProguardFiles 'proguard-rules.pro' to the debug build configuration to ensure ProGuard rules are consistently applied across both release and debug variants. (#3339)
  • Dart to native type conversion (#3372)
  • Revert FFI usage on iOS/macOS due to symbol stripping issues (#3379)
  • Android app crashing on hot-restart in debug mode (#3358)
  • Dont use Companion in JNI calls and properly release JNI refs (#3354)
    • This potentially fixes segfault crashes related to JNI

Enhancements #

  • Refactor captureReplay and setReplayConfig to use JNI (#3318)
  • Refactor init to use JNI (#3324)
  • Flush logs if client/hub/sdk is closed (#3335

Dependencies #

9.9.0-beta.4 #

Fixes #

  • Dart to native type conversion (#3372)
  • Revert FFI usage on iOS/macOS due to symbol stripping issues (#3379)

Dependencies #

9.9.0-beta.3 #

Features #

  • Add Sentry.setAttributes and Sentry.removeAttribute (#3352)
    • These attributes are set at the scope level and apply to all logs (and later to metrics and spans).
    • When a scope attribute conflicts with a log-level attribute, the log-level attribute always takes precedence.
  • Sentry Supabase Integration (#2913)
    • Adds the sentry_supabase package to instrument supabase with Sentry breadcrumbs, traces and errors.

Fixes #

  • Android app crashing on hot-restart in debug mode (#3358)
  • Dont use Companion in JNI calls and properly release JNI refs (#3354)
    • This potentially fixes segfault crashes related to JNI

Enhancements #

  • Flush logs if client/hub/sdk is closed (#3335

9.8.0-beta.1 #

Fixes #

  • Added consumerProguardFiles 'proguard-rules.pro' to the debug build configuration to ensure ProGuard rules are consistently applied across both release and debug variants. (#3339)

Enhancements #

  • Refactor captureReplay and setReplayConfig to use FFI/JNI (#3318)
  • Refactor init to use FFI/JNI (#3324)

9.8.0 #

Features #

Enhancements #

  • Refactor setExtra and removeExtra to use FFI/JNI (#3314)
  • Refactor setTag and removeTag to use FFI/JNI (#3313)
  • Refactor setContexts and removeContexts to use FFI/JNI (#3312)
  • Refactor setUser to use FFI/JNI (#3295)
  • Refactor native breadcrumbs sync to use FFI/JNI (#3293)
  • Refactor app hang and crash apis to use FFI/JNI (#3289)
  • Refactor AndroidReplayRecorder to use the new worker isolate api (#3296)
  • Refactor fetching app start and display refresh rate to use FFI and JNI (#3288)
  • Offload captureEnvelope to background isolate for Cocoa and Android (#3232)
  • Add sentry.replay_id to flutter logs (#3257)

Fixes #

  • Fix unsafe json access in sentry_device (#3309)

9.7.0 #

Features #

  • Add W3C traceparent header support (#3246)
    • Enable the option propagateTraceparent to allow the propagation of the W3C Trace Context HTTP header traceparent on outgoing HTTP requests.
  • Add nativeDatabasePath option to SentryFlutterOptions to set the database path for Sentry Native (#3236)
  • Add sentry.origin to logs created by LoggingIntegration (#3153)
  • Tag all spans with thread info on non-web platforms (#3101, #3144)
  • feat(feedback): Add option to disable keyboard resize (#3154)
  • Support firebase_remote_config: >=5.4.3 <7.0.0 (#3213)

Enhancements #

  • Prefix firebase remote config feature flags with firebase: (#3258)
  • Replay: continue processing if encountering InheritedWidget (#3200)
    • Prevents false debug warnings when using provider for example which extensively uses InheritedWidget
  • Add DioException response data to error breadcrumb (#3164)
    • Bumped dio min verion to 5.2.0
  • Use FFI/JNI for captureEnvelope on iOS and Android (#3115)
  • Log a warning when dropping envelope items (#3165)
  • Call options.log for structured logs (#3187)
  • Remove async usage from FlutterErrorIntegration (#3202)
  • Tag all spans during app start with start type info (#3190)
  • Refactor loadContexts and loadDebugImages to use JNI and FFI (#3224)
  • Improve envelope conversion to Uint8List in FileSystemTransport (#3147)

Fixes #

  • Safely access browser navigator.deviceMemory (#3268)
  • Recursion in openDatabase when using SentrySqfliteDatabaseFactory (#3231)
  • Implement prefill logic in SentryFeedbackWidget for useSentryUser parameter to populate fields with current user data (#3180)
  • Structured Logs: Don't add template when there are no 'sentry.message.parameter.x' attributes (#3219)

Dependencies #

9.7.0-beta.5 #

Dependencies #

9.7.0-beta.4 #

Features #

  • Add nativeDatabasePath option to SentryFlutterOptions to set the database path for Sentry Native (#3236)

9.7.0-beta.3 #

Fixes #

  • Recursion in openDatabase when using SentrySqfliteDatabaseFactory (#3231)

Enhancements #

  • Replay: continue processing if encountering InheritedWidget (#3200)
    • Prevents false debug warnings when using provider for example which extensively uses InheritedWidget

9.7.0-beta.2 #

Features #

  • Add sentry.origin to logs created by LoggingIntegration (#3153)
  • Tag all spans with thread info on non-web platforms (#3101, #3144)
  • feat(feedback): Add option to disable keyboard resize (#3154)
  • Support firebase_remote_config: >=5.4.3 <7.0.0 (#3213)

Fixes #

  • Implement prefill logic in SentryFeedbackWidget for useSentryUser parameter to populate fields with current user data (#3180)
  • Structured Logs: Don’t add template when there are no 'sentry.message.parameter.x’ attributes (#3219)

Enhancements #

  • Add DioException response data to error breadcrumb (#3164)
    • Bumped dio min verion to 5.2.0
  • Use FFI/JNI for captureEnvelope on iOS and Android (#3115)
  • Log a warning when dropping envelope items (#3165)
  • Call options.log for structured logs (#3187)
  • Remove async usage from FlutterErrorIntegration (#3202)
  • Tag all spans during app start with start type info (#3190)
  • Refactor loadContexts and loadDebugImages to use JNI and FFI (#3224)

Dependencies #

9.7.0-beta.1 #

Features #

  • Tag all spans with thread info (#3101)

Enhancements #

  • Improve envelope conversion to Uint8List in FileSystemTransport (#3147)

Dependencies #

9.6.0 #

Note: this release might require updating your Android Gradle Plugin version to at least 8.1.4.

Fixes #

  • False replay config restarts because of ScreenshotWidgetStatus equality issues (#3114)
  • Debug meta not loaded for split debug info only builds (#3104)
  • TTID/TTFD root transactions (#3099, #3111)
    • Web, Linux and Windows now create a UI transaction for the root page
    • iOS, Android now correctly create idle transactions
    • Fixes behaviour of traceId generation and TTFD for app start
  • Directionality assertion issue in debug mode (#3088)

Dependencies #

Internal #

  • Use lifecycle hook for before send event (#3017)

9.6.0-beta.2 #

Fixes #

  • False replay config restarts because of ScreenshotWidgetStatus equality issues (#3114)

9.6.0-beta.1 #

Fixes #

  • Debug meta not loaded for split debug info only builds (#3104)
  • TTID/TTFD root transactions (#3099, #3111)
    • Web, Linux and Windows now create a UI transaction for the root page
    • iOS, Android now correctly create idle transactions
    • Fixes behaviour of traceId generation and TTFD for app start
  • Directionality assertion issue in debug mode (#3088)

Dependencies #

Internal #

  • Use lifecycle hook for before send event (#3017)

9.5.0 #

Features #

  • Report Flutter framework feature flags (#2991)
    • Search for feature flags that are prefixed with flutter:*
    • This works on Flutter builds that include this PR
  • Add LoggingIntegration support for SentryLog (#3050)
  • Add enableNewTraceOnNavigation flag to SentryNavigatorObserver (#3096)
    • Default: true
    • Disable by passing false, e.g.:
      SentryNavigatorObserver(enableNewTraceOnNavigation: false)
      
    • Note: traces differ from transactions/spans — see tracing concepts here

Fixes #

  • Ensure consistent sampling per trace (#3079)

Enhancements #

  • Add sampled flag in propagation context (#3084)

Dependencies #

Internal #

  • Automate Sentry JS SDK version updates (#3080)

9.4.1 #

Fixes #

  • Span ids not re-generating for headers created from scope (#3051)
  • ScreenshotIntegration not being added for web (#3055)
  • PropagationContext not being set when Scope is cloned resulting in different trace ids when using withScope (#3069)
  • Drift transaction rollback not executed when parent span is null (#3062)

Enhancements #

  • Remove SentryTimingsCallback and use Flutter's TimingsCallback instead (#3054)
  • Remove unused native frames integration (#3053)

9.4.0 #

Fixes #

  • SPM should use exact instead of from when defining the sentry-cocoa package (#3065)
  • Respect ancestor text direction in SentryScreenshotWidget (#3046)
  • Add additional crashpad path candidate (#3016)
  • Replay JNI usage with SentryFlutterPlugin (#3036, #3039)
  • Do not set isTerminating on captureReplay for Android (#3037)
    • Previously segments might be missing on Android replays if an unhandled error happened

Dependencies #

9.4.0-beta.2 #

Fixes #

  • Respect ancestor text direction in SentryScreenshotWidget (#3046)

9.4.0-beta.1 #

Fixes #

  • Add additional crashpad path candidate (#3016)
  • Replay JNI usage with SentryFlutterPlugin (#3036, #3039)
  • Do not set isTerminating on captureReplay for Android (#3037)
    • Previously segments might be missing on Android replays if an unhandled error happened

Dependencies #

9.3.0 #

Breaking Change (Tooling) #

  • Upgrade Kotlin languageVersion to 1.8 (#3032)
    • This allows usage of the Kotlin Android Plugin 2.2.0 which requires a languageVersion of 1.8 or higher
    • If you are experiencing an issue we recommend upgrading to a toolchain compatible with Kotlin 1.8 or higher

Features #

  • SentryFeedbackWidget Improvements (#2964)
    • Capture a device screenshot for feedback
    • Customize tests and required fields
    • Customization moved from the SentryFeedbackWidget constructor to SentryFlutterOptions:
// configure your feedback widget
options.feedback.showBranding = false;

9.2.0 #

Features #

  • Add os and device attributes to Flutter logs (#2978)
  • String templating for structured logs (#3002)
  • Add user attributes to Dart/Flutter logs (#3014)

Fixes #

  • Fix context to native sync for sentry context types (#3012)

Enhancements #

  • Dont execute app start integration if tracing is disabled (#3026)
  • Set Firebase Remote Config flags on integration initialization (#3008)

9.1.0 #

Features #

  • Flutter Web: add debug ids to events (#2917)
    • This allows support for symbolication based on debug ids
    • This only works if you use the Sentry Dart Plugin version 3.0.0 or higher
  • Improved TTID/TTFD API (#2866)
    • This improves the stability and consistency of TTFD reporting by introducing new APIs
// Prerequisite: `SentryNavigatorObserver` is set up and routes you navigate to have unique names, e.g configured via `RouteSettings`
// Info: Stateless widgets will report TTFD automatically when wrapped with `SentryDisplayWidget` - no need to call `reportFullyDisplayed`.

// Method 1: wrap your widget that you navigate to in `SentryDisplayWidget` 
SentryDisplayWidget(child: YourWidget())

// Then report TTFD after long running work (File I/O, Network) within your widget.
@override
void initState() {
  super.initState();
  // Do some long running work...
  Future.delayed(const Duration(seconds: 3), () {
    if (mounted) {
      SentryDisplayWidget.of(context).reportFullyDisplayed();
    }
  });
}

// Method 2: use the API directly to report TTFD - this does not require wrapping your widget with `SentryDisplayWidget`:
@override
void initState() {
  super.initState();
  // Get a reference to the current display before doing work.
  final currentDisplay = SentryFlutter.currentDisplay();
  // Do some long running work...
  Future.delayed(const Duration(seconds: 3), () {
    currentDisplay?.reportFullyDisplayed();
  });
}
  • Add message parameter to captureException() (#2882)
  • Add module in SentryStackFrame (#2931)
    • Set SentryOptions.includeModuleInStackTrace = true to enable this. This may change grouping of exceptions.

Dependencies #

Enhancements #

  • Only enable load debug image integration for obfuscated apps (#2907)

9.0.0 #

Version 9.0.0 marks a major release of the Sentry Dart/Flutter SDKs containing breaking changes.

The goal of this release is the following:

  • Bump the minimum Dart and Flutter versions to 3.5.0 and 3.24.0 respectively
  • Bump the minimum Android API version to 21
  • Add interoperability with the Sentry Javascript SDK in Flutter Web for features such as release health and reporting native JS errors
  • GA the Session Replay feature
  • Provide feature flag support as well as Firebase Remote Config support
  • Trim down unused and potentially confusing APIs

How To Upgrade #

Please carefully read through the migration guide in the Sentry docs on how to upgrade from version 8 to version 9

Breaking changes #

  • Increase minimum SDK version requirements to Dart v3.5.0 and Flutter v3.24.0 (#2643)
  • Update naming of LoadImagesListIntegration to LoadNativeDebugImagesIntegration (#2833)
  • Set sentry-native backend to crashpad by default and breakpad for Windows ARM64 (#2791)
    • Setting the SENTRY_NATIVE_BACKEND environment variable will override the defaults.
  • Remove manual TTID implementation (#2668)
  • Remove screenshot option attachScreenshotOnlyWhenResumed (#2664)
  • Remove deprecated beforeScreenshot (#2662)
  • Remove old user feedback api (#2686)
    • This is replaced by beforeCaptureScreenshot
  • Remove deprecated loggers (#2685)
  • Remove user segment (#2687)
  • Enable Sentry JS SDK native integration by default (#2688)
  • Remove enableTracing (#2695)
  • Remove options.autoAppStart and setAppStartEnd (#2680)
  • Bump Drift min version to 2.24.0 and use QueryInterceptor instead of QueryExecutor (#2679)
  • Add hint for transactions (#2675)
    • BeforeSendTransactionCallback now has a Hint parameter
  • Remove dart:html usage in favour of package:web (#2710)
  • Remove max response body size (#2709)
    • Responses are now only attached if size is below ~0.15mb
    • Responses are attached to the Hint object, which can be read in beforeSend/beforeSendTransaction callbacks via hint.response.
    • For now, only the dio integration is supported.
  • Enable privacy masking for screenshots by default (#2728)
  • Set option anrEnabled to true by default (#2878)
  • Mutable Data Classes (#2818)
    • Some SDK classes do not have const constructors anymore.
    • The copyWith and clone methods of SDK classes were deprecated.
// old
options.beforeSend = (event, hint) {
  event = event.copyWith(release: 'my-release');
  return event;
}
// new
options.beforeSend = (event, hint) {
  event.release = 'my-release';
  return event;
}

Features #

  • Sentry Structured Logs Beta (#2919)
    • The old SentryLogger has been renamed to SdkLogCallback and can be accessed through options.log now.
    • Adds support for structured logging though Sentry.logger:
// Enable in `SentryOptions`:
options.enableLogs = true;

// Use `Sentry.logger`
Sentry.logger.info("This is a info log.");
Sentry.logger.warn("This is a warning log with attributes.", attributes: {
  'string-attribute': SentryLogAttribute.string('string'),
  'int-attribute': SentryLogAttribute.int(1),
  'double-attribute': SentryLogAttribute.double(1.0),
  'bool-attribute': SentryLogAttribute.bool(true),
});
  • Add support for feature flags and integration with Firebase Remote Config (#2825, #2837)
// Manually track a feature flag
Sentry.addFeatureFlag('my-feature', true);

// or use the Sentry Firebase Remote Config Integration (sentry_firebase_remote_config package is required)
// Add the integration to automatically track feature flags from firebase remote config.
await SentryFlutter.init(
  (options) {
    options.dsn = 'https://example@sentry.io/add-your-dsn-here';
    options.addIntegration(
      SentryFirebaseRemoteConfigIntegration(
        firebaseRemoteConfig: yourFirebaseRemoteConfig,
      ),
    );
  },
);
  • Properly generates and links trace IDs for errors and spans (#2869, #2861):
    • With SentryNavigatorObserver - each navigation event starts a new trace.
    • Without SentryNavigatorObserver on non-web platforms - a new trace is started from app lifecycle hooks.
    • Web without SentryNavigatorObserver - the same trace ID is reused until the page is refreshed or closed.
  • Add support for Flutter Web release health (#2794)
    • Requires using SentryNavigatorObserver;

Behavioral changes #

  • Set log level to warning by default when debug = true (#2836)
  • Set HTTP client breadcrumbs log level based on response status code (#2847)
    • 5xx is mapped to SentryLevel.error
    • 4xx is mapped to SentryLevel.warning
  • Parent-child relationship for the PlatformExceptions and Cause (#2803)
    • Improves and more accurately represent exception groups
    • Disabled by default as it may cause issues to group differently
    • You can enable this feature by setting options.groupException = true

Improvements #

  • Replay: improve Android native interop performance by using JNI (#2670)
  • Align User Feedback API (#2949)
    • Don’t apply breadcrumbs and extras from scope to feedback events
    • Capture session replay when processing feedback events
    • Record feedback client report for dropped feedback events
    • Record feedback client report for errors when using HttpTransport
  • Truncate feedback message to max 4096 characters (#2954)
  • Replay: Mask RichText Widgets by default (#2975)

Dependencies #

9.0.0-RC.4 #

Enhancements #

  • Replay: Mask RichText Widgets (#2975)

9.0.0-RC.3 #

Features #

  • Sentry Structured Logs (#2919)
    • The old SentryLogger has been renamed to SdkLogCallback and can be accessed through options.log now.
    • Adds support for structured logging though Sentry.logger:
// Enable in `SentryOptions`:
options.enableLogs = true;

// Use `Sentry.logger`
Sentry.logger.info("This is a info log.");
Sentry.logger.warn("This is a warning log with attributes.", attributes: {
  'string-attribute': SentryLogAttribute.string('string'),
  'int-attribute': SentryLogAttribute.int(1),
  'double-attribute': SentryLogAttribute.double(1.0),
  'bool-attribute': SentryLogAttribute.bool(true),
});

9.0.0-RC.2 #

Fixes #

  • Add hasSize guard when using a renderObject in SentryUserInteractionWidget (#2946)

9.0.0-RC.1 #

Fixes #

  • Fix feature flag model keys (#2943)

9.0.0-RC #

Various fixes & improvements #

  • build(deps): bump ruby/setup-ruby from 1.233.0 to 1.237.0 (#2908) by @dependabot
  • build(deps): bump actions/create-github-app-token from 2.0.2 to 2.0.6 (#2909) by @dependabot

9.0.0-beta.2 #

Fixes #

  • Errors caught by OnErrorIntegration should be unhandled by default (#2901)
    • This will not affect grouping
    • This might affect crash-free rate

Dependencies #

9.0.0-beta.1 #

Features #

  • Properly generates and links trace IDs for errors and spans (#2869, #2861):
    • With SentryNavigatorObserver - each navigation event starts a new trace.
    • Without SentryNavigatorObserver on non-web platforms - a new trace is started from app lifecycle hooks.
    • Web without SentryNavigatorObserver - the same trace ID is reused until the page is refreshed or closed.
  • Add FeatureFlagIntegration (#2825)
// Manually track a feature flag
Sentry.addFeatureFlag('my-feature', true);
  • Firebase Remote Config Integration (#2837)
// Add the integration to automatically track feature flags from firebase remote config.
await SentryFlutter.init(
  (options) {
    options.dsn = 'https://example@sentry.io/add-your-dsn-here';
    options.addIntegration(
      SentryFirebaseRemoteConfigIntegration(
        firebaseRemoteConfig: yourFirebaseRemoteConfig,
      ),
    );
  },
);
  • Make hierarchical exception grouping opt-in (#2858)

Fixes #

  • Trace propagation in HTTP tracing clients not correctly set up if performance is disabled (#2850)

Behavioral changes #

  • Mutable Data Classes (#2818)
    • Some SDK classes do not have const constructors anymore.
    • The copyWith and clone methods of SDK classes were deprecated.
  • Set log level to warning by default when debug = true (#2836)
  • Set HTTP client breadcrumbs log level based on response status code (#2847)
    • 5xx is mapped to SentryLevel.error
    • 4xx is mapped to SentryLevel.warning
  • Parent-child relationship for the PlatformExceptions and Cause (#2803, #2858)
    • Improves and changes exception grouping. To opt in, set groupExceptions=true
  • Set anrEnabled enabled per default (#2878)

API Changes #

  • Update naming of LoadImagesListIntegration to LoadNativeDebugImagesIntegration (#2833)
  • Remove other from SentryRequest (#2879)

Dependencies #

9.0.0-alpha.2 #

Features #

  • Add support for Flutter Web release health (#2794)
    • Requires using SentryNavigatorObserver;

Dependencies #

Behavioral changes #

  • Set sentry-native backend to crashpad by default and breakpad for Windows ARM64 (#2791)
    • Setting the SENTRY_NATIVE_BACKEND environment variable will override the defaults.
  • Remove renderer from flutter_context (#2751)

API changes #

  • Move replay and privacy from experimental to options (#2755)
  • Cleanup platform mocking (#2730)
    • The PlatformChecker was renamed to RuntimeChecker
    • Moved PlatformChecker.platform to options.platform

9.0.0-alpha.1 #

Breaking changes #

  • Remove SentryDisplayWidget and manual TTID implementation (#2668)
  • Increase minimum SDK version requirements to Dart v3.5.0 and Flutter v3.24.0 (#2643)
  • Remove screenshot option attachScreenshotOnlyWhenResumed (#2664)
  • Remove deprecated beforeScreenshot (#2662)
  • Remove old user feedback api (#2686)
  • Remove deprecated loggers (#2685)
  • Remove user segment (#2687)
  • Enable JS SDK native integration by default (#2688)
  • Remove enableTracing (#2695)
  • Remove options.autoAppStart and setAppStartEnd (#2680)
  • Bump Drift min version to 2.24.0 and use QueryInterceptor instead of QueryExecutor (#2679)
  • Add hint for transactions (#2675)
    • BeforeSendTransactionCallback now has a Hint parameter
  • Remove dart:html usage in favour of package:web (#2710)
  • Remove max response body size (#2709)
    • Responses are now only attached if size is below ~0.15mb
    • Responses are attached to the Hint object, which can be read in beforeSend/beforeSendTransaction callbacks via hint.response.
    • For now, only the dio integration is supported.
  • Enable privacy masking for screenshots by default (#2728)

Enhancements #

  • Replay: improve Android native interop performance by using JNI (#2670)

Dependencies #

Older versions #

Entries for versions before 9.0.0 are in CHANGELOG-archive.md.

49
likes
160
points
305k
downloads

Documentation

Documentation
API reference

Publisher

verified publishersentry.io

Weekly Downloads

An integration which adds support for performance tracing for the Dio package.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

dio, sentry

More

Packages that depend on sentry_dio