-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 associated error timestamp #71890
Comments
Assigning to @getsentry/support for routing ⏲️ |
Routing to @getsentry/product-owners-replays for triage ⏲️ |
@vaind I think its a data-type issue. Type 3 is an int and type 5 is a float. |
Where exactly are you seeing these? |
@vaind In the network tab. The request ending in |
cc @billyvg |
@vaind where are you seeing the events being trimmed to second-precision? |
In the error JSON as shown in the Issues section (https://us.sentry.io/api/0/projects/sentry-sdks/sentry-react-native/events/998a79f1f18341b7b9d5747ff38f650e/json/). But it may not be relevant to ordering in replay, considering what @cmanallen pointed out. |
It looks like the timestamp is being truncated to second-precision. The endpoint to check is Look at this example from the linked replay: The payload contains: It's coming from here somehow:
What needs to happen is we need to serialize the timestamp into a unixtimestamp, it should be a number in either second-precision or ms-precision like cc @aliu3ntry can you take a look and put a fix up for us? 🙏 |
@ryan953 Why is this just a problem for the RN SDK and not the Javascript SDK? |
@cmanallen it's been a problem for JS SDK FWIW, but it's possible it's an SDK problem there. |
From what I looked at, it seems like the replay endpoint queries Discover under the hood, same as /events. It doesn't do anything to format/truncate the timestamp field. From the examples in sdk docs, it looks like we support milliseconds, but it's up to the SDK to send them. |
AFAICT the timestmap has the millisecond precision when the event is sent from the SDK. |
To me the other of breadcrumbs is pretty important because it implies causality, i.e. that the error was caused by the click. As it is, the error seem to happen before user action, which is incorrect. What can be done to make this work? |
Lets follow up sometime next week once @aliu39 is back from pto |
The team will be looking into ways to fill in the missing precision this week |
Routing to @getsentry/product-owners-issues for triage ⏲️ |
Routing to @getsentry/product-owners-replays for triage ⏲️ |
Routing to @getsentry/product-owners-issues for triage ⏲️ |
Unfortunately, until the initiative linked above is carried out, we're not able to support this. |
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
I've noticed this when working on RN replay touch breadcrumbs:
When an error is trigerred by a buton press, the error shows up before the actual touch event even though it should be the other way around.
The issue is caused by the error not having an exact sub-second timestmap. However, it seems the timestmap is set correctly (with millisecond precision) when the event is sent from the javascript SDK, but then is trimmed to second-precision.
Expected Result
Breadcrumbs list touch events before the error caused by the touch event.
Actual Result
Example (the last listed touch event is the one that caused the error):

Product Area
Unknown
Link
https://sentry-sdks.sentry.io/replays/7eaabdb7c8374de292e9dbb841d9b777/?project=5428561&query=&referrer=%2Freplays%2F&statsPeriod=24h&t_main=breadcrumbs&yAxis=count%28%29
DSN
No response
Version
No response
The text was updated successfully, but these errors were encountered: