Closed
Description
Problem Statement
There is the sentry-replay repo which has the Sentry Browser SDK package and rreweb packages as dependencies.
Meaning it has clear requirement dependancies, and similar requirement for CI/CD in terms of testing and creating releases, but cannot easily take advantage of everything which is already part of the JS SDK.
Possible benefits of moving into the JS mono-repo
- existing test infrastructure
- monitor file size over across changes
- existing releases
- could simplify reuse of code from within the JS SDK and for users to instrument in the future
Concerns:
Adds more dependencies into the JS repo, where there is already quite a number of integrations for different browser and Node frameworks, along with all the Sentry features, and SDKs which are dependant on the JS SDK (Electron and react-native)
Solution Brainstorm
Include sentry-replay to be more tightly coupled as part of the Sentry JavaScript SDK mono-repo
Outcomes:
- https://github.com/getsentry/sentry-replay included in sentry-javascript monorepo
- can we define here what the ideal import and init will look like? @jas-kas
@sentry/replay
is available via the CDN bundle (e.g. combined bundle w/@sentry/browser
)- Available via lazy loader
Progress
Phase I: Pre-Migration
Phase II: Migration
- Migrate sentry-replay into sentry-javascript #6257
- Update build infrastructure of replay package #6280
- Release first official 7.x version from monorepo
- [Replay] Update readme & provide migration docs #6383
- fix(replay): fix rrweb issue & vendor it #6335
Phase III: Post-Migration
More long-term tasks are tracked in