Skip to content
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

Replay start() can include old "history" events that are not relevant to the replay #11984

Open
billyvg opened this issue May 10, 2024 · 2 comments

Comments

@billyvg
Copy link
Member

billyvg commented May 10, 2024

When calling start(), we always include a breadcrumb for the initial page navigation. This should not always be included and will cause the replay to appear to start earlier than when the public start() function is actually caused.

To repro:

  • set sample rates to 0 (we want manual recording)
  • reload page (this will create the navigation.reload breadcrumb)
  • wait seconds
  • observe current time and then call replay.start()
  • console.log something so that it gets record to replay

You'll see that we get a navigation breadcrumb at time = 0 and the console.log happens at time = x

@mydea
Copy link
Member

mydea commented May 13, 2024

I am not sure I understand this 🤔 what exactly is happening/should not be happening? We do not add a breadcrumb for start, I believe...? Or at least I do not know which breadcrumb this is refering to 😅

@billyvg
Copy link
Member Author

billyvg commented May 13, 2024

I think it's the handleHistorySpanListener -- basically what happens is that we call start() seconds after pageload, we will have breadcrumbs from around pageload time. In the replay it'll look like we have nothing happening for seconds until the time we actually call start.

I haven't verified this closely yet, but this seems like what is happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants