Skip to content

[Replay] Split up main index.ts for better composability #6406

@mydea

Description

@mydea

Currently, we have a quite massive index.ts file in replay, which contains a lot of logic.

We should split this up with a few key goals in mind:

  1. Separation of concerns - currently, this mixes e.g. the integration itself, the core class for the replay functionality, etc. all together.
  2. Functional programming - we try to use a more functional programming style. This does not mean we need to avoid all classes, but a decent amount of stuff can probably be extracted into atomic classes.
  3. Avoid very large files - this can make refactorings, understanding etc. harder
  4. Declare what is public & private - currently, everything is kind of public, we want to change this.

Progress

Metadata

Metadata

Assignees

Labels

Package: replayIssues related to the Sentry Replay SDK

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions