github getsentry/sentry-dart 10.8.0-beta.0

pre-release46 minutes ago

Features

Flutter

  • Add experimental continuous profiling for Flutter on iOS and macOS. Set options.profiling.sessionSampleRate in SentryFlutter.init, then start and stop the profiler around the work you want to measure. See the profiling guide for app startup profiling and release symbols. by @buenaflor in #4203
    await SentryFlutter.init((options) {
      options.dsn = 'YOUR_DSN';
      options.profiling.sessionSampleRate = 1.0; // Use 0.1 to sample 10% of sessions.
    });
    
    await SentryFlutter.startProfiler();
    try {
      await loadDashboard(); // Your app's work.
    } finally {
      await SentryFlutter.stopProfiler();
    }
  • Continue Flutter traces into webview_flutter page loads on Android, iOS, and macOS. Run flutter pub add sentry_webview_flutter, enable tracing in Flutter and on the page, and replace checkout.example.com with your trusted host. by @buenaflor in #4223
    const host = 'checkout.example.com';
    await controller.setJavaScriptMode(JavaScriptMode.unrestricted);
    await SentryWebViewTracing.addTracePropagation(controller, allowedHosts: [host]);
    await controller.loadRequest(Uri.https(host, '/'));

Fixes

Replay

Other

  • Fix a crash in vkDestroyFramebuffer on Android after the Activity is destroyed. Engine teardown now waits up to one second for the SDK's worker isolates to exit. by @buenaflor in #4186
  • (dart) Handle missing formatted in SentryMessage.fromJson by @buenaflor with @sentry-junior in #4246
  • (ios) Add missing nullability annotations to SentryFlutterReplayScreenshotProvider.h by @VectoDE in #4234
  • (link) Don't block responses on event capture by @buenaflor with @sentry-junior in #4247
  • (logs) Don't assert on templates without placeholders by @buenaflor with @sentry-junior in #4245

Dependencies

Deps

  • chore(deps): update Cocoa SDK to v9.36.1 by @github-actions in #4261
  • chore(deps): update Android SDK to v8.67.0 by @buenaflor with @github-actions in #4254
  • chore(deps): update JavaScript SDK to v11.20.0 by @buenaflor with @github-actions in #4238

Internal Changes

  • (craft) Add sentry_webview_flutter to registry target by @buenaflor with @sentry-junior in #4257
  • (flutter) Ignore handler setup in profiler test by @buenaflor with @sentry-junior in #4259
  • (replay) Cover network detail leak on Android and Cocoa by @buenaflor with @sentry-junior in #4241
  • (skills) Fix @internal note in review skill by @buenaflor with @sentry-junior in #4249
  • Remove dead diagram and format workflows by @buenaflor with @sentry-junior in #4242

Don't miss a new sentry-dart release

NewReleases is sending notifications on new releases.