# Convert Spans to Metrics in OpenPipeline Using DQL

**URL:** <https://community.dynatrace.com/t/convert-spans-to-metrics-in-openpipeline-using-dql/54050>\
**Category:** DQL\
**Tags:** openpipeline, spans\
**Created:** [November 11, 2025, 5:16pm UTC](https://community.dynatrace.com/t/convert-spans-to-metrics-in-openpipeline-using-dql/54050 "2025-11-11T17:16:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregOReilly](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gregoreilly/32/41879_2.png) [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Post date:** [November 11, 2025, 5:16pm UTC](https://community.dynatrace.com/t/convert-spans-to-metrics-in-openpipeline-using-dql/54050/1 "2025-11-11T17:16:00Z")

</div>

Use Case: cut metrics from spans over a longer period of time.

Today spans are only stored for 10 days by default. I want to extract metrics from span attribute data over a longer period of time.

Has anyone managed to do this?

 ![GregOReilly_0-1762880936657.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a0a3567eb10c3741b1c8ba8b0376abcdb9afcb1c.png)

---

<div class="post-metadata">

**Author:** ![StrangerThing](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/strangerthing/32/12182_2.png) [@StrangerThing](https://community.dynatrace.com/u/StrangerThing)\
**Post date:** [November 11, 2025, 5:16pm UTC](https://community.dynatrace.com/t/convert-spans-to-metrics-in-openpipeline-using-dql/54050/2 "2025-11-11T17:16:47Z")

</div>

I’ve been doing this for quite some time. Do you have a specific question you’d like an answer to?
