-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Is there any reason why Replay will be uploaded without errors? #58205
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
Comments
Assigning to @getsentry/support for routing ⏲️ |
Routing to @getsentry/product-owners-replays for triage ⏲️ |
getsentry/sentry-javascript#8054 I found this and it seems to be the same question. However I am using ^7.72.0 . |
Will errors caused by browser plug-ins trigger replay? However, the console did not report any errors in the replay. |
Can you confirm you are using self hosted and not SaaS? |
You have |
I will stop Replay when the user switches roles, start Replay after the user switches successfully, and setUser again to start a new Replay to record errors. So as long as replaysSessionSampleRate is used, this without error Replay will definitely exist, right? |
Correct You can use |
Sorry, this is a private project,I can't provide it, but I can provide my operating principle. |
Just want to double check, is |
I use 1 in my local environment because I found that when using 0.1, replay is not generated for the same type of error report after switching roles, so I need to use 1 to test. |
Right but I thought you did not want replays without any errors? with |
thank you for your reply, I used replaysSessionSampleRate: 0 and startBuffer(). This solves the problem of generating a replay without errors. However, when I make an 'ApolloError: Response not successful: Received status code 400' error, this generates a replay, which is fine. But when the error occurs again after switching roles, the error after switching roles does not generate a replay. |
I have tried different interfaces to generate this error, but no replay will be generated. However, if I make other types of errors such as (xxx is not a function), the replay will be generated again. It seems that it can only record the same type of error once. This is not good. I made an error when calling the interface at place A, and then I switched roles and made an error when calling another interface at place B. It can log the A error. But it does not record errors in the B interface |
@Zero-ruan could you share a repro of the behavior your experiencing? We could go from there and either identify any bug or suggest a way to use the API to get the behavior you expect instead |
Sure, I updated this link: https://github.com/Zero-ruan/sentry/tree/main |
Thanks @Zero-ruan, we'll take a look soon |
I'm going to close this ticket as the original issue is now fixed. Calling However there is still a problem where after a session has been stopped, we can't "restart" the session to capture onError. This issue has been captured in #77458 |
Self-Hosted Version
"@sentry/react": "^7.72.0"
CPU Architecture
x86_64
Docker Version
20.10.16
Docker Compose Version
2.6.0
Steps to Reproduce
Expected Result
Actual Result
Event ID
No response
The text was updated successfully, but these errors were encountered: