Skip to content

Capture replays on backend errors (MPAs, SSR) #9468

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

Open
mydea opened this issue Nov 7, 2023 · 0 comments
Open

Capture replays on backend errors (MPAs, SSR) #9468

mydea opened this issue Nov 7, 2023 · 0 comments

Comments

@mydea
Copy link
Member

mydea commented Nov 7, 2023

Currently for MPAs error-based replay sampling will not necessarily work when the error is not thrown in JS.

We can do this manually today (users can call replay.flush()), but maybe we can add some more/better logic there.

For example, when a page is rendered with a non-200 status code, we could consider this as an error and flush immediately.

And/or we could add another meta tag to the rendered HTML that tells replay that an error happened server side (e.g. <meta name="sentry-replay-error">).

@mydea mydea added the Package: replay Issues related to the Sentry Replay SDK label Nov 7, 2023
@billyvg billyvg marked this as a duplicate of #9704 Dec 12, 2024
@linear linear bot added the Migrated label Jan 9, 2025
@billyvg billyvg changed the title [Replay] Replay error sampling for MPAs Capture replays on backend errors (MPAs, SSR) Feb 19, 2025
@mydea mydea added the Replays label Apr 14, 2025 — with Linear
@stephanie-anderson stephanie-anderson removed the Package: replay Issues related to the Sentry Replay SDK label Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants