fix(ourlogs): resolve received time in the timestamp hover tooltip - #121477
Open
JoshuaKGoldberg wants to merge 6 commits into
Open
fix(ourlogs): resolve received time in the timestamp hover tooltip#121477JoshuaKGoldberg wants to merge 6 commits into
JoshuaKGoldberg wants to merge 6 commits into
Conversation
The trace item details endpoint only aliases the observed timestamp to `observed_timestamp` when it comes back as an int. It is stored as a string, so it arrives as `sentry.observed_timestamp_nanos` instead, which the tooltip never looked up. In the expanded log details and the metrics sample details, whose attribute maps are keyed by the raw response names, "Received" therefore spun on a loading indicator forever. The tooltip now reads either name, and only renders the "Received" row once it has a value instead of falling back to an unbounded spinner. Fixes LOGS-937
JoshuaKGoldberg
force-pushed
the
joshgoldberg/logs-937-timestamp-loading-forever-in-hover
branch
from
August 6, 2026 20:25
368f560 to
a50d323
Compare
Member
Author
|
@cursor review |
JoshuaKGoldberg
force-pushed
the
joshgoldberg/logs-937-timestamp-loading-forever-in-hover
branch
from
August 6, 2026 20:48
a50d323 to
368f560
Compare
…esolves The Received row only rendered once the observed timestamp was available, so the tooltip grew under the cursor when the trace item details arrived. It now renders the loading indicator while that request is in flight, and stops once it settles so a missing attribute does not spin forever.
Member
Author
|
@cursor review |
Contributor
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 73c5b8b. Configure here.
JoshuaKGoldberg
marked this pull request as ready for review
August 7, 2026 14:13
nsdeschenes
reviewed
Aug 7, 2026
nsdeschenes
approved these changes
Aug 7, 2026
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 32705b4. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The "Received" row in the log timestamp hover tooltip spun on a loading indicator forever in the expanded log details.
observed_timestampis declared withsearch_type="number"but stored as a string, andLOGS_INTERNAL_TO_PUBLIC_ALIAS_MAPPINGSis keyed bysearch_type. The trace item details endpoint looks the alias up using the type of the value it actually got back ("string") so it misses the"number"` bucket and falls back to emitting the internal name:{"name": "sentry.observed_timestamp_nanos", "type": "str", "value": "1786046484244158487"}The log table row works because it maps that internal name in while merging the prefetched attributes. But the tooltip only read the
observed_timestampalias. The expanded log details key their attribute map by the raw response names, so the lookup missed and the placeholder spinner added in #115505 had nothing to resolve to.The tooltip now accepts either name. It also stops spinning once the trace item details request has settled, so a log that just misses the attribute no longer leaves a spinner up forever.
Closes LOGS-937.