-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react
SDK Version
7.99.0
Framework Version
React 18.2.0
Link to Sentry event
No response
SDK Setup
Sentry.init({
dsn: SENTRY_DSN,
integrations: [
new Sentry.BrowserTracing({
routingInstrumentation: Sentry.reactRouterV6Instrumentation(
React.useEffect,
useLocation,
useNavigationType,
createRoutesFromChildren,
matchRoutes
),
}),
Sentry.replayIntegration({
maskAllText: false,
blockAllMedia: false,
maskAllInputs: false,
}),
],
environment: getEnvironment(),
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
debug: getEnvironment() === Environment.PROD ? false : true,
});
Steps to Reproduce
Open the web app and use it as normal, observe that often times (but not always) a session replay never records.
Expected Result
Expected /envelope requests to be sent by the sdk which contain data for session replay, and then the replay becomes available to view in the Sentry dashboard. /envelope requests are sent for the replay_event type along with the encoded data tracking the dom to recreate the recording in Sentry dashboard:



Actual Result
Case 1: /envelope requests are sent, but response throws an error for the envelope exceeding the replay recording size limit:
Case 2: /envelope requests are sent, but no session replay data is ever included, only session type events are sent no replay_event type events:
Sentry logs throw an error for the buffer size exceeding the limit.

Metadata
Metadata
Assignees
Labels
Projects
Status



