Releases: getsentry/sentry-dart
Releases · getsentry/sentry-dart
9.0.0-RC.1
Fixes
- Fix feature flag model keys (#2943)
9.0.0-RC
9.0.0
is now a release candidate.
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
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.
- 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://[email protected]/add-your-dsn-here';
options.addIntegration(
SentryFirebaseRemoteConfigIntegration(
firebaseRemoteConfig: yourFirebaseRemoteConfig,
),
);
},
);
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
andclone
methods of SDK classes were deprecated.
- Some SDK classes do not have
- Set log level to
warning
by 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
anrEnabled
enabled per default (#2878)
API Changes
- Update naming of
LoadImagesListIntegration
toLoadNativeDebugImagesIntegration
(#2833) - Remove
other
fromSentryRequest
(#2879)
Dependencies
8.14.2 (Stable)
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
crashpad
by default andbreakpad
for Windows ARM64 (#2791)- Setting the
SENTRY_NATIVE_BACKEND
environment variable will override the defaults.
- Setting the
- Remove renderer from
flutter_context
(#2751)
API changes
8.14.1 (Stable)
8.14.0
This release fixes an issue where Cold starts can be incorrectly reported as Warm starts on Android.
Behavioral changes
⚠️ Auto IP assignment forSentryUser
is now guarded bysendDefaultPii
(#2726)- If you rely on Sentry automatically processing the IP address of the user, set
options.sendDefaultPii = true
or manually set the IP address of theSentryUser
to{{auto}}
- If you rely on Sentry automatically processing the IP address of the user, set
- Adding the device name to Contexts is now guarded by
sendDefaultPii
(#2741)- Set
options.sendDefaultPii = true
if you want to have the device name reported
- Set
- Remove macOS display refresh rate support (#2628)
- Can't reliably detect on multi-monitor systems and on older macOS versions.
- Not very meaningful, as other applications may be running in parallel and affecting it.
Enhancements
- Add Flutter runtime information (#2742)
- This works if the version of Flutter you're using includes this code.
- Use
loadDebugImagesForAddresses
API for Android (#2706)- This reduces the envelope size and data transferred across method channels
- If debug images received by
loadDebugImagesForAddresses
are empty, the SDK loads all debug images as fallback
- Disable
ScreenshotIntegration
,WidgetsBindingIntegration
andSentryWidget
in multi-view apps #2366 (#2366)
Fixes
- Pass missing
captureFailedRequests
param toFailedRequestInterceptor
(#2744) - Bind root screen transaction to scope (#2756)
- Reference to
SentryWidgetsFlutterBinding
in warning message inFramesTrackingIntegration
(#2704)
Deprecations
- Deprecate Drift
SentryQueryExecutor
(#2715)- This will be replace by
SentryQueryInterceptor
in the next major v9
- This will be replace by
// Example usage in Sentry Flutter v9
final executor = NativeDatabase.memory().interceptWith(
SentryQueryInterceptor(databaseName: 'your_db_name'),
);
final db = AppDatabase(executor);
- Deprecate
autoAppStart
andsetAppStartEnd
(#2681)
Dependencies
8.13.3 (Stable)
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
andsetAppStartEnd
(#2680) - Bump Drift min version to
2.24.0
and useQueryInterceptor
instead ofQueryExecutor
(#2679) - Add hint for transactions (#2675)
BeforeSendTransactionCallback
now has aHint
parameter
- Remove
dart:html
usage 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
Hint
object, which can be read inbeforeSend
/beforeSendTransaction
callbacks viahint.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)