Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sentry Session Replay Flutter: FileNotFoundException #4133

Closed
pascalfriedrich opened this issue Feb 3, 2025 · 2 comments · Fixed by #4135
Closed

Sentry Session Replay Flutter: FileNotFoundException #4133

pascalfriedrich opened this issue Feb 3, 2025 · 2 comments · Fixed by #4135
Assignees
Labels
Platform: Android Type: Bug Something isn't working

Comments

@pascalfriedrich
Copy link

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/

@pascalfriedrich
Copy link
Author

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!

@romtsn romtsn self-assigned this Feb 3, 2025
@romtsn romtsn moved this from Needs Discussion to In Progress in Mobile & Cross Platform SDK Feb 3, 2025
@romtsn
Copy link
Member

romtsn commented Feb 3, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android Type: Bug Something isn't working
Projects
Archived in project
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants