Skip to content

9.1.0

Compare
Choose a tag to compare
@sentry-release-bot sentry-release-bot released this 24 Jun 11:57
7073074

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)