-
Notifications
You must be signed in to change notification settings - Fork 64
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
references (span links) not showing for traces in Grafana #977
Comments
I'm hitting the same issue with trace events: #840 (comment). I wonder what we should do in this case ? |
I've experienced this error before with the array types. We have some types that may be able to handle this, but I'm not sure how they behave in an array. Perhaps some form of If we find a nice way to |
I found a solution for |
Impressive! It can be quite a puzzle sometimes to get the right structure for these Grafana panels. I'll see if we can add it by default |
Thanks @tatchi ! This makes the span links show properly as references in the UI. While this is not implemented and merged, forked and added it unconditionally in the I still do have a problem though - when you click the span reference link it does not go to the linked span, it opens the same trace id instead. I could trace (pun unintended) the problem to the link itself. I decoded the url and the request json I show below. Maybe someone (@SpencerTorres ?) know whether this is something to be fixed in
|
Hi,
When we query traces from Clickhouse as a data source we don't see the span references listed, which is different from when I check traces from Tempo, where the reference links are in fact listed in the trace view.
I was able to somewhat fix it by adding another transformation to the sql query:
arrayMap(x,y -> map('spanID', x, 'traceID', y), Links.SpanId, Links.TraceId) AS references
This makes the links appear, but we are missing link attributes which are useful to identify/name each of the links.
Unfortunately trying to add the Links.Attributes column as tags (as it seems to be the case with Tempo) wouldn't work:
arrayMap(x,y,z -> map('spanID', x, 'traceID', y, 'tags', z), Links.SpanId, Links.TraceId, Links.Attributes) AS references
the query fails because clickhouse requires all map values to be of the same type, and in this case we have (String, String, Map).
Is there a way to have Links.Attributes showing up as span references in the Trace view in Grafana?
Thanks!
Environment:
The text was updated successfully, but these errors were encountered: