# Distributed trace duration doesn't add up

**URL:** <https://community.dynatrace.com/t/distributed-trace-duration-doesnt-add-up/44972>\
**Category:** Open Q&A\
**Tags:** distributed-traces-classic\
**Created:** [April 3, 2024, 6:22am UTC](https://community.dynatrace.com/t/distributed-trace-duration-doesnt-add-up/44972 "2024-04-03T06:22:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![garytmui](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@garytmui](https://community.dynatrace.com/u/garytmui)\
**Post date:** [April 3, 2024, 6:22am UTC](https://community.dynatrace.com/t/distributed-trace-duration-doesnt-add-up/44972/1 "2024-04-03T06:22:47Z")

</div>

I’m trying to understand why my IIS / .NET request response time is taking so long. In this case, it reflects 22.2s response time and duration, but the elapsed time of the last call (UpdateRequestCache) does not reflect 22+ seconds. Is there a way to tell where the 22s is taking place? Before or after the code execution?

 ![garytmui_0-1712125247181.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/be050d2663284b13c7718d7f68c1f6987d32ef07.png)

Thanks!

Gary

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [April 3, 2024, 7:40am UTC](https://community.dynatrace.com/t/distributed-trace-duration-doesnt-add-up/44972/2 "2024-04-03T07:40:09Z")

</div>

Hi.  
In the top right (3 dots …) , you can use response time hotspots and method hotspots.

 ![PacoPorro_0-1712129993458.png](https://global.discourse-cdn.com/dynatrace/original/3X/e/a/eacafbe0d2e8baeaa2de42821837119358d56de6.png)

---

<div class="post-metadata">

**Author:** ![Malaik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/malaik/32/32673_2.png) [@Malaik](https://community.dynatrace.com/u/Malaik)\
**Post date:** [April 3, 2024, 8:09am UTC](https://community.dynatrace.com/t/distributed-trace-duration-doesnt-add-up/44972/3 "2024-04-03T08:09:09Z")

</div>

I have another question here

What a refine is doing exactly?

---

<div class="post-metadata">

**Author:** ![garytmui](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@garytmui](https://community.dynatrace.com/u/garytmui)\
**Post date:** [April 3, 2024, 12:40pm UTC](https://community.dynatrace.com/t/distributed-trace-duration-doesnt-add-up/44972/4 "2024-04-03T12:40:27Z")

</div>

Thanks for the reply. I tried Response time hotspots and it showed me this but I’m not sure how to get to dig further. I see it attributes it to UrlRoutingModule which makes sense as this is a WebApi application, but it’s still odd that almost all of the Duration of 22 seconds isn’t within the Controller code seen being executed in the “Code” page. The duration of items in the Code page make up less than a second but can’t tell where the rest of time is taken.

 ![garytmui_0-1712147831193.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/cbab7b2f0a67c45854fff422c916c81b4e28fd52.png)

Does Dynatrace have any visibility into what happens before and after what is invoked in the Controller and seen in the Code level analysis?

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [April 3, 2024, 12:48pm UTC](https://community.dynatrace.com/t/distributed-trace-duration-doesnt-add-up/44972/5 "2024-04-03T12:48:24Z")

</div>

click on the View method hotspots and check it.
