getsentry/sentry-java

Sentry Session Replay Flutter: FileNotFoundException

Closed this issue · 2 comments

Integration

sentry-android

Build System

Gradle

AGP Version

8.0.0

Proguard

Disabled

Version

7.20.1

Steps to Reproduce

We have been using Sentry (8.12.0) very successfully with Flutter for some time now. We activated Session Replay 3 weeks ago and have been getting sufficient reports from iOS ever since. Unfortunately none at all from Android. I asked for similar issues in the discord channel, @markushi sent me here.

static void _setSentryOptions(SentryFlutterOptions options) {
    const dsn =
        'https://...';
    options
      ..dsn = dsn
      ..sampleRate = .2
      ..tracesSampler = _getTracesSampler 
      ..profilesSampleRate = 1.0
      ..environment = Environment.flavor?.name
      ..tracePropagationTargets.clear()
      ..tracePropagationTargets.addAll([...])
      ..experimental.replay.onErrorSampleRate = .20
      ..experimental.replay.sessionSampleRate = .02
      ..debug = kDebugMode
      ..configureGraphQl();
  }

Expected Result

To get session replays for android as well.

Actual Result

See: https://aparkado-ug.sentry.io/share/issue/d142956e1a79444fb3b8e44c30f2bb1f/

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on macOS 15.0 24A335 darwin-arm64, locale de-DE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.93.1)
[✓] Connected device (7 available)            
[✓] Network resources

• No issues found!

hi @pascalfriedrich thanks for reporting the issue, just opened a PR that should fix it, we'll ship it later this week, stay tuned!