Releases: getsentry/sentry-dart
Releases Β· getsentry/sentry-dart
8.6.0
If you want to try Session Replay Android Alpha, see our alpha release: https://github.com/getsentry/sentry-dart/releases/tag/8.6.0-alpha.2
Improvements
- Add error type identifier to improve obfuscated Flutter issue titles (#2170)
- Example: transforms issue titles from
GA
toFlutterError
orminified:nE
toFlutterError
- This is enabled automatically and will change grouping if you already have issues with obfuscated titles
- If you want to disable this feature, set
enableExceptionTypeIdentification
tofalse
in your Sentry options - You can add your custom exception identifier if there are exceptions that we do not identify out of the box
- Example: transforms issue titles from
// How to add your own custom exception identifier
class MyCustomExceptionIdentifier implements ExceptionIdentifier {
@override
String? identifyType(Exception exception) {
if (exception is MyCustomException) {
return 'MyCustomException';
}
if (exception is MyOtherCustomException) {
return 'MyOtherCustomException';
}
return null;
}
}
SentryFlutter.init((options) =>
options..prependExceptionTypeIdentifier(MyCustomExceptionIdentifier()));
Deprecated
- Deprecate
enableTracing
(#2199)- The
enableTracing
option has been deprecated and will be removed in the next major version. We recommend removing it
in favor of thetracesSampleRate
andtracesSampler
options. If you want to enable performance monitoring, please set
thetracesSampleRate
to a sample rate of your choice, or provide a sampling function astracesSampler
option
instead. If you want to disable performance monitoring, remove thetracesSampler
andtracesSampleRate
options.
- The
Dependencies
8.6.0-alpha.2
Features
-
Android Session Replay Alpha (#2032)
To try out replay, you can set following options:
await SentryFlutter.init( (options) { ... options.experimental.replay.sessionSampleRate = 1.0; options.experimental.replay.errorSampleRate = 1.0; }, appRunner: () => runApp(MyApp()), );
Access is limited to early access orgs on Sentry. If you're interested, sign up for the waitlist
8.5.0
Features
- Add dart platform to sentry frames (#2193)
- This allows viewing the correct dart formatted raw stacktrace in the Sentry UI
- Support
ignoredExceptionsForType
(#2150)- Filter out exception types by calling
SentryOptions.addExceptionFilterForType(Type exceptionType)
- Filter out exception types by calling
Fixes
- Disable sff & frame delay detection on web, linux and windows (#2182)
- Display refresh rate is locked at 60 for these platforms which can lead to inaccurate metrics
Improvements
- Capture meaningful stack traces when unhandled errors have empty or missing stack traces (#2152)
- This will affect grouping for unhandled errors that have empty or missing stack traces.
Dependencies
8.4.0
Features
- Add API for pausing/resuming iOS and macOS app hang tracking (#2134)
- This is useful to prevent the Cocoa SDK from reporting wrongly detected app hangs when the OS shows a system dialog for asking specific permissions.
- Use
SentryFlutter.pauseAppHangTracking()
andSentryFlutter.resumeAppHangTracking()
- Capture total frames, frames delay, slow & frozen frames and attach to spans (#2106)
- Support WebAssembly compilation (dart2wasm) (#2113)
- Add flag to disable reporting of view hierarchy identifiers (#2158)
- Use
reportViewHierarchyIdentifiers
to enable or disable the option
- Use
- Record dropped spans in client reports (#2154)
- Add memory usage to contexts (#2133)
- Only for Linux/Windows applications, as iOS/Android/macOS use native SDKs
Fixes
- Fix sentry_drift compatibility with Drift 2.19.0 (#2162)
- App starts hanging for 30s (#2140)
- Time out for app start info retrieval has been reduced to 10s
- If
autoAppStarts
isfalse
andsetAppStartEnd
has not been called, the app start event processor will now return early instead of waiting forgetAppStartInfo
to finish
Improvements
- Set dart runtime version with parsed
Platform.version
(#2156)
Dependencies
Deprecated
8.4.0-beta.1
Features
- Add API for pausing/resuming iOS and macOS app hang tracking (#2134)
- This is useful to prevent the Cocoa SDK from reporting wrongly detected app hangs when the OS shows a system dialog for asking specific permissions.
- Use
SentryFlutter.pauseAppHangTracking()
andSentryFlutter.resumeAppHangTracking()
- Capture total frames, frames delay, slow & frozen frames and attach to spans (#2106)
- Support WebAssembly compilation (dart2wasm) (#2113)
Deprecated
- User segment is now deprecated and will be removed in version 9.0.0. Use a custom tag or context instead. (#2119)
Dependencies
8.3.0
8.2.0
Enhancements
- Include sentry frames in stacktraces to enable SDK crash detection (#2050)
Fixes
- Event processor blocking transactions from being sent if
autoAppStart
is false (#2028)
Features
- Create app start transaction when no
SentryNavigatorObserver
is present (#2017) - Adds native spans to app start transaction (#2027)
- Adds app start spans to first transaction (#2009)
Fixes
- Fix
PlatformException
title parsing (#2033)
Dependencies
7.20.2
8.1.0
Feature
- Set snapshot to
true
if stacktrace is not provided (#2000)- If the stacktrace is not provided, the Sentry SDK will fetch the current stacktrace via
StackTrace.current
and the snapshot will be set totrue
- this may change the grouping behavior snapshot = true
means it's a synthetic exception, reflecting the current state of the thread rather than the stack trace of a real exception
- If the stacktrace is not provided, the Sentry SDK will fetch the current stacktrace via
Fixes
- Timing metric aggregates metrics in the created span (#1994)