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

Tempo: Use timezone of selected range for timestamps #75438

Merged
merged 2 commits into from Sep 28, 2023
Merged

Conversation

fabrizio-grafana
Copy link
Contributor

@fabrizio-grafana fabrizio-grafana commented Sep 26, 2023

In the Search or TraceQL tabs, users can select traces and filter them using a time range—traces outside of the specified time range are discarded. For this time range, Grafana uses by default the browser timezone, but the user can override it. However, when the user overrides the timezone, the timestamps of the returned traces are not formatted using the chosen timezone. This has been reported by at least one customer to be misleading.

This PR fixes the issue by resorting on the default formatting of the Table component. Example of outcome when selecting traces for the last 6 hours at around 11:45 AM UTC:

  • With default (browser) timezone (UTC+2, and thus 1:45 PM UTC):
Screenshot 2023-09-26 at 13 49 56
  • Using UTC as timezone:
Screenshot 2023-09-26 at 13 50 06

@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.2.x milestone Sep 26, 2023
@fabrizio-grafana fabrizio-grafana self-assigned this Sep 26, 2023
@fabrizio-grafana fabrizio-grafana changed the title Use timezone of selected range for timestamps Tempo: Use timezone of selected range for timestamps Sep 26, 2023
@fabrizio-grafana fabrizio-grafana marked this pull request as ready for review September 26, 2023 12:13
@fabrizio-grafana fabrizio-grafana requested a review from a team as a code owner September 26, 2023 12:13
@adrapereira adrapereira merged commit b1bc379 into main Sep 28, 2023
15 checks passed
@adrapereira adrapereira deleted the tempo/timestamps branch September 28, 2023 13:05
rwwiv pushed a commit that referenced this pull request Oct 2, 2023
* Use timezone of selected range for timestamps

* Fix tests
mildwonkey pushed a commit that referenced this pull request Oct 4, 2023
* Use timezone of selected range for timestamps

* Fix tests
@zerok zerok modified the milestones: 10.2.x, 10.2.0 Oct 23, 2023
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.

None yet

3 participants