grafana / tempo

Grafana Tempo is a high volume, minimal dependency distributed tracing backend.
https://grafana.com/oss/tempo/
GNU Affero General Public License v3.0
3.91k stars 510 forks source link

Trace statistics on a single Trace in Tempo UI in Grafana #3062

Open mehta-ankit opened 11 months ago

mehta-ankit commented 11 months ago

Is your feature request related to a problem? Please describe. wondering if Tempo UI can show statistics on the trace and its spans. Jaeger UI has a similar functionality and we are trying to switch to Tempo, so was wondering if this could be added or if its on the roadmap. image

It allows dev's working on performance incidents to get some analytics out of a single trace spanning through multiple services.

Describe the solution you'd like Trace Statistics view like Jaeger UI: https://github.com/jaegertracing/jaeger-ui/blob/main/packages/jaeger-ui/src/components/TracePage/TraceStatistics/index.tsx

Describe alternatives you've considered Can this be replicated using TraceQL in someway ? 🤔 💭

Additional context

mehta-ankit commented 10 months ago

I saw this in new grafana 10.2.0 release notes: https://grafana.com/docs/grafana/latest/whatsnew/whats-new-in-v10-2/#compute-red-metrics-over-spans-aggregated-by-attribute-with-the-aggregate-by-search-option Which is great, but wondering how we can achieve this for a single trace and its group of spans

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had any activity in the past 60 days. The next time this stale check runs, the stale label will be removed if there is new activity. The issue will be closed after 15 days if there is no new activity. Please apply keepalive label to exempt this Issue.

joe-elliott commented 8 months ago

This is an interesting idea that is not possible in Tempo currently. However, we are working on two features that will make this possible in the future.

First, we intend to add a trace:id instrinsic which would let you write queries against a single trace. Details of upcoming TraceQL extensions are here. Feel free to leave thoughts/comments!

https://github.com/grafana/tempo/pull/3185

Second, we are actively working on a metrics from traces feature. Details here:

https://github.com/grafana/tempo/pull/3138

These two features together would allow for something along the lines of what you're asking. For instance this would show the rate of spans for the trace by service:

{ trace:id = "<some trace id>" } | rate() by (resource.service.name)
github-actions[bot] commented 6 months ago

This issue has been automatically marked as stale because it has not had any activity in the past 60 days. The next time this stale check runs, the stale label will be removed if there is new activity. The issue will be closed after 15 days if there is no new activity. Please apply keepalive label to exempt this Issue.

sam-mcbr commented 6 months ago

keep alive please 😄

carfernandez16 commented 6 months ago

Hello, the trace statics feature for a single trace is a very useful feature because allow to identify the bottleneck for the single trace.