Skip to content
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

Update trace queries to better handle time fields #890

Merged
merged 7 commits into from
Jul 9, 2024

Conversation

aangelisc
Copy link
Contributor

Traces are currently displayed with the wrong timing due to discrepancies between how the trace visualisation handles times and how the Javascript Date type functions (it doesn't correctly handle sub-millisecond precision).

Fixes #888 by converting the time field to nanoseconds and then adjusting it to milliseconds.

@aangelisc aangelisc requested a review from SpencerTorres July 3, 2024 10:46
@aangelisc aangelisc self-assigned this Jul 3, 2024
@aangelisc aangelisc requested a review from a team as a code owner July 3, 2024 10:46
Copy link

github-actions bot commented Jul 3, 2024

Use the following command to run this PR with Docker at http://localhost:3000:

docker run --rm -p 3000:3000 grafana/plugin-builds:012888e6b02e605e9fcd401a9f894d3e5e94d2f4pre

Copy link
Collaborator

@SpencerTorres SpencerTorres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, just the one question. Thanks for submitting this!

src/data/sqlGenerator.ts Outdated Show resolved Hide resolved
@aangelisc aangelisc enabled auto-merge (squash) July 3, 2024 15:06
@aangelisc aangelisc merged commit 4e09416 into main Jul 9, 2024
17 checks passed
@rudebono
Copy link

Thank you ⸜(。˃ ᵕ ˂ )⸝♡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Imprecise trace representation
4 participants