sentry_dio 10.7.0
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()andresumeTouchTracking()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 afterresume()untilresumeTouchTracking()is called. Code that implementsSentryReplaymust 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
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/replaceof the current route now starts aui.loadtransaction (static) or route span (streaming), likepushby @buenaflor, @codex and 2 others in #4155- With
enableAutoTransactionsdisabled, navigating to a named route now ends the app-start display (TTID/TTFD end asdeadline_exceededin 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
nativeDatabasePathisn'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 #
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 = truealong withreplay.sessionSampleRateorreplay.onErrorSampleRate. Requires the CanvasKit or Skwasm renderer.SentryFlutter.replaystart/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
addUserInteractionWidgettoSentryFlutterOptionsto track taps on widgets the SDK doesn't recognize, like those frommaterial_uiandcupertino_ui. Tooltip labels now come fromRawTooltip, somaterial_uitooltips 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 #
10.2.0 #
Features #
- Report the generation of the cellular network technology in
device.connection_effective_typeon Android and iOS, for example4gor5g. On Android 11 and earlier, the app must have theREAD_PHONE_STATEpermission. 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
PlatformExceptionevents 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. UseSentry.startSpaninstead ofSentry.startTransactionandISentrySpan.startChild, which are no-ops in streaming mode. Setoptions.traceLifecycle = SentryTraceLifecycle.staticto 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
minSdkto 26 or higher. (#4049) - Remove CocoaPods support. Flutter apps targeting Apple platforms must use Swift Package Manager. (#3879)
- Remove
enableLogsandenableMetrics. Logs and metrics are always enabled. The logging integration forwards Sentry logs by default; adjustminSentryLogLevelor set it toLevel.OFFto disable forwarding. (#3983) - Remove
enableStandaloneAppStartTracing. When tracing is enabled, app start is always reported as a standaloneapp.startroot 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
traceIdonSentryLog, make logger methods returnvoid, and removeSentryLogAttribute. (#3842, #3852, #3843) - Add a
Hintparameter 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
copyWithAPIs and protocol clones, and makeclone()internal. (#3877, #3845) - Remove the deprecated
SentryFeedbackWidget. (#3844) - Replace
options.logwith internal logging and makeBindingWrapperandbindingUtilsinternal. (#3932, #3940) - Align span attributes with Sentry Conventions and remove
file.asyncfrom 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, andflush. Explicitly started replays work even when both automatic sample rates are0. (#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
SensitiveContentby 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
okwhile preserving explicit span statuses. (#4035) - Exclude later frame builds from startup timing. (8ee2d41)
- Align HTTP client error type and value. (#3934)
Dependencies #
10.0.0-rc.2 #
Breaking Changes #
- Default
traceLifecycletoSentryTraceLifecycle.stream, sending spans as they finish instead of as transactions. Errors, messages, and feedback captured inside an active streaming span now link to it. Setoptions.traceLifecycle = SentryTraceLifecycle.staticto keep the previous transaction-based behavior. (#4057)
10.0.0-rc.1 #
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
enableLogsandenableMetrics. Logs and metrics are always enabled. The logging integration forwards Sentry logs by default; adjustminSentryLogLevelor set it toLevel.OFFto disable forwarding. (#3983) - Remove
enableStandaloneAppStartTracing. When tracing is enabled, app start is always reported as a standaloneapp.startroot 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
traceIdonSentryLog, make logger methods returnvoid, and removeSentryLogAttribute. (#3842, #3852, #3843) - Add a
Hintparameter 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
copyWithAPIs and protocol clones, and makeclone()internal. (#3877, #3845) - Remove the deprecated
SentryFeedbackWidget. (#3844) - Replace
options.logwith internal logging and makeBindingWrapperandbindingUtilsinternal. (#3932, #3940) - Align span attributes with Sentry Conventions and remove
file.asyncfrom 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, andflush. Explicitly started replays work even when both automatic sample rates are0. (#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
SensitiveContentby 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 #
10.0.0-beta.0 #
10.0.0-alpha.7 #
10.0.0-alpha.6 #
Features #
Flutter
- Add manual Session Replay controls on Android and iOS through
SentryFlutter.replay:start,startBuffering,pause,resume,stop, andflush. Explicitly started replays work even when both automatic sample rates are0. 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 #
10.0.0-alpha.4 #
Features #
- Remove the
enableLogsandenableMetricsoptions. Logs and metrics are now always enabled and can no longer be disabled throughSentryOptions. Remove anyoptions.enableLogs/options.enableMetricsassignments from your SDK init. If you use the logging integration, it now forwards log records as Sentry logs as soon as it is added — raiseminSentryLogLevel, or set it toLevel.OFF, to opt out. by @buenaflor in #3983 enableStandaloneAppStartTracingis removed. App start is always a standaloneapp.startroot 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
beforeSendinstead of before it, soignoreErrors, ignored exception types, event processors andbeforeSendall take precedence over thesampleRatedecision. An event dropped bybeforeSendis now reported as abefore_senddiscard rather than asample_rateone, andbeforeSendnow 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_flutterno 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
copyWithAPIs by @buenaflor in #3877 - Replace
options.logwithinternalLoggerby @buenaflor in #3932 - Graduate mature v10 APIs and make
BindingWrapperandbindingUtilsinternal by @buenaflor in #3940 - Share Darwin plugin sources by @buenaflor in #3922
- Move the gRPC
MockHubinto_sentry_testingby @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 #
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 #
9.28.0 #
Features #
- (dart) Add sentry.trace_lifecycle span attribute by @buenaflor in #3985
- Copy
app.vitals.start.screenonto standaloneapp.startchildren so app start spans can be drilled down by launch screen. by @buenaflor in #3988 enableLogsandenableMetricsnow only control automatic collection. Logs and metrics sent throughSentry.loggerandSentry.metricsare 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
GlobalMemoryStatusExAPI instead of spawning the deprecatedwmic.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 #
9.26.0 #
Features #
Flutter
- Standalone app start tracing (experimental) by @buenaflor in #3896 and #3918
- App start is reported as its own
App Startroot (app.start) spanning process start to the first frame, instead of being nested under the synthetic initialui.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 bothSentryTraceLifecycle.staticandSentryTraceLifecycle.stream. - Extend the app start past the first frame with
SentryFlutter.extendAppStart()andSentryFlutter.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.
- App start is reported as its own
// 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 returnsnullon the other lifecycle and once the extension has ended. Finishing the span completes the extension, so there is no need to also callfinishExtendedAppStart().
// 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 #
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 #
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_settingsmetadata by @buenaflor in #3700
Dependencies #
Deps
9.21.0 #
Features #
- Rename
SentryFeedbackWidgettoSentryFeedbackFormby @denrase in #3702SentryFeedbackWidgetis deprecated and will be removed in the next major version. UseSentryFeedbackForminstead.
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 thesentry-org_idvalue 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(defaultfalse): 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.
- By default, the SDK now extracts the organization ID from the DSN (e.g.
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 #
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-basedSentryTraceLifecycle.staticremains the default. - In stream mode, create spans with the new
Sentry.startSpan/Sentry.startSpanSyncAPIs — 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)
enableNewTraceOnNavigationis now opt-in by @buenaflor in #3657SentryNavigatorObserverno 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 #
9.16.1 #
9.16.0 #
9.15.0 #
9.14.0 #
Features #
- Add
enableTombstoneoption for improved native crash reporting on Android 12+ (#3526)- When enabled, uses Android's
ApplicationExitInfo.REASON_CRASH_NATIVEto capture native crashes with more detailed thread information - Disabled by default
- When enabled, uses Android's
Fixes #
- Dont guard user attributes behind
sendDefaultPiifor logs and metrics (#3524)
Dependencies #
- Bump Native SDK from v0.12.6 to v0.12.8 (#3514, #3520)
- Bump Android SDK from v8.32.0 to v8.33.0 (#3529)
- Add
sentry.javascript.browser.fluttersdk name for native js errors (#3525)
Features #
- Synchronize
traceIdto 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 #
- Bump Android SDK from v8.31.0 to v8.32.0 (#3506)
- Bump JavaScript SDK from v10.6.0 to v10.38.0 (#3474)
- Bump Native SDK from v0.12.5 to v0.12.6 (#3502)
Internal Changes
- Add SDK features metadata for SPM vs CocoaPods tracking (#3508)
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
captureNativeFailedRequestsoption for iOS/macOS (#3472)- This option allows controlling native HTTP error capturing independently from
captureFailedRequests. - When
null(the default), it falls back tocaptureFailedRequestsfor backwards compatibility. - Set to
falseto disable native failed request capturing while keeping Dart-side capturing enabled.
- This option allows controlling native HTTP error capturing independently from
Fixes #
- Catch client exceptions in HttpTransport.send (#3490)
Dependencies #
Internal Changes
Fixes #
- Catch client exceptions in HttpTransport.send (#3490)
Internals #
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
captureNativeFailedRequestsoption for iOS/macOS (#3472)- This option allows controlling native HTTP error capturing independently from
captureFailedRequests. - When
null(the default), it falls back tocaptureFailedRequestsfor backwards compatibility. - Set to
falseto disable native failed request capturing while keeping Dart-side capturing enabled.
- This option allows controlling native HTTP error capturing independently from
Enhancements #
- Refactor Logging API to be consistent with Metrics (#3463)
Dependencies #
9.10.0 #
9.9.1 #
9.9.0 #
Features #
- Add
Sentry.setAttributesandSentry.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_supabasepackage to instrument supabase with Sentry breadcrumbs, traces and errors.
- Adds the
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
Companionin JNI calls and properly release JNI refs (#3354)- This potentially fixes segfault crashes related to JNI
Enhancements #
- Refactor
captureReplayandsetReplayConfigto use JNI (#3318) - Refactor
initto use JNI (#3324) - Flush logs if client/hub/sdk is closed (#3335
Dependencies #
9.9.0-beta.4 #
9.9.0-beta.3 #
Features #
- Add
Sentry.setAttributesandSentry.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_supabasepackage to instrument supabase with Sentry breadcrumbs, traces and errors.
- Adds the
Fixes #
- Android app crashing on hot-restart in debug mode (#3358)
- Dont use
Companionin 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 #
9.8.0 #
Features #
- Mark file sync spans run in the main isolate with
blocked_main_thread(#3270) - This allows Sentry to create issues automatically out of file spans running a certain time on the main thread: https://docs.sentry.io/product/issues/issue-details/performance-issues/file-main-thread-io/
Enhancements #
- Refactor
setExtraandremoveExtrato use FFI/JNI (#3314) - Refactor
setTagandremoveTagto use FFI/JNI (#3313) - Refactor
setContextsandremoveContextsto use FFI/JNI (#3312) - Refactor
setUserto 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
AndroidReplayRecorderto use the new worker isolate api (#3296) - Refactor fetching app start and display refresh rate to use FFI and JNI (#3288)
- Offload
captureEnvelopeto background isolate for Cocoa and Android (#3232) - Add
sentry.replay_idto flutter logs (#3257)
Fixes #
- Fix unsafe json access in
sentry_device(#3309)
9.7.0 #
Features #
- Add W3C
traceparentheader support (#3246)- Enable the option
propagateTraceparentto allow the propagation of the W3C Trace Context HTTP headertraceparenton outgoing HTTP requests.
- Enable the option
- Add
nativeDatabasePathoption toSentryFlutterOptionsto set the database path for Sentry Native (#3236) - Add
sentry.originto logs created byLoggingIntegration(#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
- Prevents false debug warnings when using provider for example which extensively uses
- Add
DioExceptionresponse data to error breadcrumb (#3164)- Bumped
diomin verion to5.2.0
- Bumped
- Use FFI/JNI for
captureEnvelopeon 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
loadContextsandloadDebugImagesto use JNI and FFI (#3224) - Improve envelope conversion to
Uint8ListinFileSystemTransport(#3147)
Fixes #
- Safely access browser
navigator.deviceMemory(#3268) - Recursion in
openDatabasewhen usingSentrySqfliteDatabaseFactory(#3231) - Implement prefill logic in
SentryFeedbackWidgetforuseSentryUserparameter 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 #
- Bump Cocoa SDK from v8.55.1 to v8.56.2 (#3276)
- Bump Android SDK from v8.20.0 to v8.21.1 (#3243)
- Pin
ffigento19.0.0and addobjective_cversion8.0.0package used inffigenon iOS and macOS (#3163) - Bump JavaScript SDK from v9.40.0 to v10.6.0 (#3167, #3201)
- Bump Native SDK from v0.9.1 to v0.10.0 (#3223)
9.7.0-beta.5 #
9.7.0-beta.4 #
9.7.0-beta.3 #
9.7.0-beta.2 #
Features #
- Add
sentry.originto logs created byLoggingIntegration(#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
SentryFeedbackWidgetforuseSentryUserparameter 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
DioExceptionresponse data to error breadcrumb (#3164)- Bumped
diomin verion to5.2.0
- Bumped
- Use FFI/JNI for
captureEnvelopeon 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
loadContextsandloadDebugImagesto use JNI and FFI (#3224)
Dependencies #
9.7.0-beta.1 #
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
ScreenshotWidgetStatusequality 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 #
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
- Search for feature flags that are prefixed with
- Add
LoggingIntegrationsupport forSentryLog(#3050) - Add
enableNewTraceOnNavigationflag toSentryNavigatorObserver(#3096)- Default:
true - Disable by passing
false, e.g.:SentryNavigatorObserver(enableNewTraceOnNavigation: false) - Note: traces differ from transactions/spans — see tracing concepts here
- Default:
Fixes #
- Ensure consistent sampling per trace (#3079)
Enhancements #
- Add sampled flag in propagation context (#3084)
Dependencies #
- Bump Native SDK from v0.9.0 to v0.9.1 (#3018)
- Bump JavaScript SDK from v9.5.0 to v9.40.0 (#3085, #3092)
Internal #
- Automate Sentry JS SDK version updates (#3080)
9.4.1 #
Fixes #
- Span ids not re-generating for headers created from scope (#3051)
ScreenshotIntegrationnot being added for web (#3055)PropagationContextnot being set whenScopeis cloned resulting in different trace ids when usingwithScope(#3069)- Drift transaction rollback not executed when parent span is null (#3062)
Enhancements #
9.4.0 #
Fixes #
- SPM should use
exactinstead offromwhen 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
isTerminatingoncaptureReplayfor Android (#3037)- Previously segments might be missing on Android replays if an unhandled error happened
Dependencies #
9.4.0-beta.1 #
9.3.0 #
Breaking Change (Tooling) #
- Upgrade Kotlin
languageVersionto1.8(#3032)- This allows usage of the Kotlin Android Plugin
2.2.0which requires alanguageVersionof1.8or higher - If you are experiencing an issue we recommend upgrading to a toolchain compatible with Kotlin
1.8or higher
- This allows usage of the Kotlin Android Plugin
Features #
- SentryFeedbackWidget Improvements (#2964)
- Capture a device screenshot for feedback
- Customize tests and required fields
- Customization moved from the
SentryFeedbackWidgetconstructor toSentryFlutterOptions:
// configure your feedback widget
options.feedback.showBranding = false;
9.2.0 #
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.0or 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
messageparameter tocaptureException()(#2882) - Add module in SentryStackFrame (#2931)
- Set
SentryOptions.includeModuleInStackTrace = trueto enable this. This may change grouping of exceptions.
- Set
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.0and3.24.0respectively - 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.0and Flutterv3.24.0(#2643) - Update naming of
LoadImagesListIntegrationtoLoadNativeDebugImagesIntegration(#2833) - Set sentry-native backend to
crashpadby default andbreakpadfor Windows ARM64 (#2791)- Setting the
SENTRY_NATIVE_BACKENDenvironment variable will override the defaults.
- Setting the
- 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
- This is replaced by
- Remove deprecated loggers (#2685)
- Remove user segment (#2687)
- Enable Sentry JS SDK native integration by default (#2688)
- Remove
enableTracing(#2695) - Remove
options.autoAppStartandsetAppStartEnd(#2680) - Bump Drift min version to
2.24.0and useQueryInterceptorinstead ofQueryExecutor(#2679) - Add hint for transactions (#2675)
BeforeSendTransactionCallbacknow has aHintparameter
- Remove
dart:htmlusage in favour ofpackage:web(#2710) - Remove max response body size (#2709)
- Responses are now only attached if size is below ~0.15mb
- Responses are attached to the
Hintobject, which can be read inbeforeSend/beforeSendTransactioncallbacks viahint.response. - For now, only the
diointegration is supported.
- Enable privacy masking for screenshots by default (#2728)
- Set option
anrEnabledtotrueby default (#2878) - Mutable Data Classes (#2818)
- Some SDK classes do not have
constconstructors anymore. - The
copyWithandclonemethods of SDK classes were deprecated.
- Some SDK classes do not have
// 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
SentryLoggerhas been renamed toSdkLogCallbackand can be accessed throughoptions.lognow. - Adds support for structured logging though
Sentry.logger:
- The old
// 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),
});
// 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
SentryNavigatorObserveron 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.
- With
- Add support for Flutter Web release health (#2794)
- Requires using
SentryNavigatorObserver;
- Requires using
Behavioral changes #
- Set log level to
warningby default whendebug = 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
- 5xx is mapped to
- 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
feedbackclient report for dropped feedback events - Record
feedbackclient report for errors when usingHttpTransport
- Truncate feedback message to max 4096 characters (#2954)
- Replay: Mask RichText Widgets by default (#2975)
Dependencies #
- Bump Android SDK from v7.22.4 to v8.12.0 (#2941, #2819, #2831, #2848, [#2873](https://github.com/getsentry/sentry-dart/pull/2873, #2883))
- Bump Cocoa SDK from v8.46.0 to v8.51.0 (#2820, #2851, #2884, #2951))
- Bump Native SDK from v0.8.2 to v0.8.4 (#2823, #2872)
- Bump jni from v0.14.0 to v0.14.1 ([#2800])(https://github.com/getsentry/sentry-dart/pull/2800)
9.0.0-RC.3 #
Features #
- Sentry Structured Logs (#2919)
- The old
SentryLoggerhas been renamed toSdkLogCallbackand can be accessed throughoptions.lognow. - Adds support for structured logging though
Sentry.logger:
- The old
// 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 #
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 #
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
SentryNavigatorObserveron 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.
- With
- 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
constconstructors anymore. - The
copyWithandclonemethods of SDK classes were deprecated.
- Some SDK classes do not have
- Set log level to
warningby default whendebug = 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
- 5xx is mapped to
- Parent-child relationship for the PlatformExceptions and Cause (#2803, #2858)
- Improves and changes exception grouping. To opt in, set
groupExceptions=true
- Improves and changes exception grouping. To opt in, set
- Set
anrEnabledenabled per default (#2878)
API Changes #
- Update naming of
LoadImagesListIntegrationtoLoadNativeDebugImagesIntegration(#2833) - Remove
otherfromSentryRequest(#2879)
Dependencies #
9.0.0-alpha.2 #
Features #
- Add support for Flutter Web release health (#2794)
- Requires using
SentryNavigatorObserver;
- Requires using
Dependencies #
- Bump Native SDK from v0.7.20 to v0.8.2 (#2761, #2807)
- Bump Javascript SDK from v8.42.0 to v9.5.0 (#2784)
Behavioral changes #
- Set sentry-native backend to
crashpadby default andbreakpadfor Windows ARM64 (#2791)- Setting the
SENTRY_NATIVE_BACKENDenvironment variable will override the defaults.
- Setting the
- Remove renderer from
flutter_context(#2751)
API changes #
9.0.0-alpha.1 #
Breaking changes #
- Remove
SentryDisplayWidgetand 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.autoAppStartandsetAppStartEnd(#2680) - Bump Drift min version to
2.24.0and useQueryInterceptorinstead ofQueryExecutor(#2679) - Add hint for transactions (#2675)
BeforeSendTransactionCallbacknow has aHintparameter
- Remove
dart:htmlusage in favour ofpackage:web(#2710) - Remove max response body size (#2709)
- Responses are now only attached if size is below ~0.15mb
- Responses are attached to the
Hintobject, which can be read inbeforeSend/beforeSendTransactioncallbacks viahint.response. - For now, only the
diointegration 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.