Skip to content

TraceQL - How to get average duration of traces ? #4354

Answered by joe-elliott
hugoallaine asked this question in Q&A
Discussion options

You must be logged in to vote

avg_over_time was added recently and will be available in Tempo 2.7 in a few months.

The query would look something like:

{ trace:rootName="root span name" } | avg_over_time(trace:duration)

This should give you what you are looking for. In Tempo 2.6 the best way to get this information would be to use the metrics generators

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@hugoallaine
Comment options

Answer selected by hugoallaine
Comment options

You must be logged in to vote
2 replies
@joe-elliott
Comment options

@hugoallaine
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants