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

Programatically start recording. #4441

Open
DeanGracey opened this issue Jan 14, 2025 · 1 comment
Open

Programatically start recording. #4441

DeanGracey opened this issue Jan 14, 2025 · 1 comment

Comments

@DeanGracey
Copy link

It doesn't seem possible to start a new recording session using the react native package as one can using the javascript package, i.e:

// You can access the active replay instance from anywhere in your code like this:
const replay = Sentry.getReplay();

// This starts in `session` mode, regardless of sample rates
replay.start();

I would like to start recording sessions based on the value of a feature flag, so I don't just want a sample rate as set in the Sentry.init call:

_experiments: {
      replaysSessionSampleRate: 1,
      replaysOnErrorSampleRate: 1,
    },

Am I missing something or is this something that could be supported in the future?

@krystofwoldrich
Copy link
Member

Hi @DeanGracey,
thank you for using/trying our Mobile Session Replay.

Programmatic control (same as in JS replay.start()) of mobile replays is on our backlog and is definitely coming.

Let us know if you have any more question about Mobile Replay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: Needs Discussion
Development

No branches or pull requests

2 participants