fix(metrics): Pass timestamp to trace item details#116315
Merged
nsdeschenes merged 5 commits intoMay 28, 2026
Merged
Conversation
Allow trace item details callers to pass a unix timestamp so lookup can be scoped to the relevant trace item occurrence. Existing callers omit the value and keep the previous request shape. Co-Authored-By: OpenAI Codex <noreply@openai.com>
Use the metric sample timestamp when fetching trace item details so the request matches trace meta scoping. Add a regression assertion for the expanded sample details request. Co-Authored-By: OpenAI Codex <noreply@openai.com>
Contributor
📊 Type Coverage Diff✅ No new type safety issues introduced. Coverage: 93.59% |
Use the page filter datetime selection when trace item details do not receive an explicit item timestamp. Keep explicit metric sample timestamps as the more specific lookup key and cover the shared hook behavior with focused tests. Refs LOGS-828 Co-Authored-By: OpenAI Codex <noreply@openai.com>
Treat null trace item timestamps the same as missing timestamps so page-filter datetime params are sent as the fallback. This keeps statsPeriod available when no specific timestamp is present while preserving zero as a valid timestamp. Co-Authored-By: Codex <noreply@openai.com>
Use renderHook initialProps in the trace item details hook tests and move project store setup into beforeEach. This keeps the test setup explicit after adding null timestamp coverage. Co-Authored-By: Codex <noreply@openai.com>
Contributor
Author
|
@sentry review |
Contributor
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 8abf4b7. Configure here.
This was referenced May 28, 2026
narsaynorath
approved these changes
May 28, 2026
nsdeschenes
added a commit
that referenced
this pull request
May 28, 2026
This PR wires up the logs query to pass the `timestamp` while fetching the trace item details for a given log. Closes LOGS-829 Requires: #116315 --------- Co-authored-by: OpenAI Codex <noreply@openai.com>
nsdeschenes
added a commit
that referenced
this pull request
May 28, 2026
This PR updates the calls to trace item details when it comes to the trace waterfall to ensure that timestamps are passed to the request. Also introducing a helper function to convert precise timestamps to seconds based timestamps. Closes LOGS-830 Requires: #116315 --------- Co-authored-by: OpenAI Codex <noreply@openai.com>
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.
Pass the timestamp along for the given metrics trace item details.
Closes LOGS-828