-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
BugPackage: reactIssues related to the Sentry React SDKIssues related to the Sentry React SDKPackage: replayIssues related to the Sentry Replay SDKIssues related to the Sentry Replay SDK
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
8.31.0 and 7.119.0
Framework Version
React 17.0.0
Link to Sentry event
No response
Reproduction Example/SDK Setup
import * as Sentry from '@sentry/react'
Sentry.init({
dsn: "__MY_DSN_",
integrations: [
Sentry.replayIntegration({
maskAllText: false,
}),
],
replaysSessionSampleRate: 0.0,
replaysOnErrorSampleRate: 0.0,
debug:true,
});
class StartReplay extends React.Component{
render(){
return(
<button onClick={() => {
const replay = Sentry.getReplay();
replay.flush()
replay.start()
console.log("Starting the replay")
}}>START REPLAY</button>
)
}
}
class StopReplay extends React.Component{
render(){
return(
<button onClick={() => {
const replay = Sentry.getReplay();
console.log("Stopping the replay")
replay.stop()
}}>STOP REPLAY</button>
)
}
}
ReactDOM.render([
<StartReplay/>,
<StopReplay/>,
], document.getElementById('root'));
Steps to Reproduce
- run the simple app above, it has 2 buttons: one to start a replay and one to stop the replay
- leave the page open for a while, you can move the mouse and click around.
- start the replay
- again move the mouse and do clicks
- stop the replay
Expected Result
The replay in sentry only has the movements from after the replay was started
Actual Result
The replay in sentry has a a period at the start when nothing is shown in the replay. Then it shows the "start replay" click and all the movements as expected until the replay is stopped.
There are no request sent to sentry before the replay starts, I could not identify why the Sentry UI is showing the freezed paged for such a long time before the actual start of the replay. Sample replays can be found in my organisation:
https://dev-curumas.sentry.io/replays/?project=5278835
Metadata
Metadata
Assignees
Labels
BugPackage: reactIssues related to the Sentry React SDKIssues related to the Sentry React SDKPackage: replayIssues related to the Sentry Replay SDKIssues related to the Sentry Replay SDK
Projects
Status
No status