Skip to content

Public API for manual replay control #78018

Open
@romtsn

Description

@romtsn

Similarly to web replays, we should provide public API for controlling replay behavior manually:

  • start/startBuffering should start recording a replay regardless of sample rates set, with the corresponding mode
  • stop should stop the replay and send it to sentry
  • flush should flush all pending segments/frames to sentry
### `start/stop` current Replay
- [x] Apple impl: https://github.com/getsentry/sentry-cocoa/pull/4414
- [ ] Apple docs: (TODO)
- [ ] Android (TODO)
- [ ] https://github.com/getsentry/sentry-react-native/issues/4441
- [ ] https://github.com/getsentry/sentry-dart/issues/2558

There's also interest in permanently deactivating SR after SDK init, e.g. as described here: - getsentry/sentry-cocoa#4833

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions