# Sum the request durations between spans using Trace QL

**URL:** <https://community.grafana.com/t/sum-the-request-durations-between-spans-using-trace-ql/116173>\
**Category:** Grafana\
**Tags:** tempo, traces, query-help, dashboard\
**Created:** [March 5, 2024, 12:51pm UTC](https://community.grafana.com/t/sum-the-request-durations-between-spans-using-trace-ql/116173 "2024-03-05T12:51:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![apgrafana1](https://avatars.discourse-cdn.com/v4/letter/a/90db22/32.png) [@apgrafana1](https://community.grafana.com/u/apgrafana1)\
**Post date:** [March 5, 2024, 12:51pm UTC](https://community.grafana.com/t/sum-the-request-durations-between-spans-using-trace-ql/116173/1 "2024-03-05T12:51:59Z")

</div>

Trying to get the sum of durations between the spans.

The following query tried “{name=“Span1”} \>\> {name=“Span10”} | sum(duration)”.

Error (invalid TraceQL query: parse error at line 1, col 109: syntax error: unexpected $end).

I am using grafana cloud trial account for traces and creating dashboard based on my requirements.

Any recommendations?
