Skip to content

Commit 8689fe5

Browse files
fix(replays): error context timestamps should be in MS (#94126)
we were already sorting the errors & the other events before turning them into logs, but forgot that error timestamps are in seconds instead of milliseconds
1 parent 9e00aa3 commit 8689fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/replays/endpoints/project_replay_summarize_breadcrumbs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def fetch_error_details(project_id: int, error_ids: list[str]) -> list[ErrorEven
117117
category="error",
118118
id=event_id,
119119
title=data.get("title", ""),
120-
timestamp=data.get("timestamp", 0.0),
120+
timestamp=data.get("timestamp", 0.0) * 1000, # error timestamp is in seconds
121121
message=data.get("message", ""),
122122
)
123123
for event_id, data in zip(error_ids, events.values())

0 commit comments

Comments
 (0)