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

Support nanoseconds in tracing views #617

Open
Slach opened this issue Aug 27, 2024 · 1 comment
Open

Support nanoseconds in tracing views #617

Slach opened this issue Aug 27, 2024 · 1 comment
Assignees
Labels
p1 Priority 1
Milestone

Comments

@Slach
Copy link
Collaborator

Slach commented Aug 27, 2024

Currently only miliseconds is supported

But durationUnit is present in https://github.com/grafana/clickhouse-datasource?tab=readme-ov-file#with-a-configuration-file

@Slach Slach added this to the 3.4.0 milestone Aug 27, 2024
@svb-alt svb-alt added the p2 Priority 2 label Dec 27, 2024
@Slach Slach added p1 Priority 1 and removed p2 Priority 2 labels Jan 27, 2025
@lunaticusgreen
Copy link
Collaborator

lunaticusgreen commented Mar 2, 2025

The official Grafana ClickHouse datasource plugin (latest versions for Grafana 9/10+) does support distributed trace data with nanosecond precision.

Trace support was introduced in version 2.2.0 of the plugin, including a query format for “Trace” visualization. The plugin’s configuration and query builder explicitly allow specifying the time unit for trace durations (seconds, milliseconds, microseconds, or nanoseconds).

Internally, the plugin converts nanosecond timestamps/durations to the millisecond format required by Grafana’s trace UI. You can store trace timestamps and durations in ClickHouse with nanosecond resolution, and the plugin handles them so Grafana can display the traces. However, due to Grafana and browser limitations, the UI ultimately works at millisecond resolution, so sub-millisecond differences won’t be distinguishable on the timeline. For example, it was discussed here: grafana/clickhouse-datasource#771

In summary, the plugin explicitly supports ingesting/querying trace data in nanoseconds, but the display is effectively limited to millisecond precision.

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

No branches or pull requests

3 participants