Skip to content

Sentry Session Replay Flutter: FileNotFoundException #4133

@pascalfriedrich

Description

@pascalfriedrich

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/

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions