# Find time taken by each method for a reactive Rest request

**URL:** <https://community.dynatrace.com/t/find-time-taken-by-each-method-for-a-reactive-rest-request/19618>\
**Category:** Dynatrace API\
**Tags:** request-attributes, dynatrace-api\
**Created:** [June 18, 2020, 2:12pm UTC](https://community.dynatrace.com/t/find-time-taken-by-each-method-for-a-reactive-rest-request/19618 "2020-06-18T14:12:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vidhi\_bhalodiya](https://avatars.discourse-cdn.com/v4/letter/v/8491ac/32.png) [@vidhi\_bhalodiya](https://community.dynatrace.com/u/vidhi_bhalodiya)\
**Post date:** [June 18, 2020, 2:12pm UTC](https://community.dynatrace.com/t/find-time-taken-by-each-method-for-a-reactive-rest-request/19618/1 "2020-06-18T14:12:35Z")

</div>

I’m building a REST service that leverages Spring Boot and project reactor. To trace the hotspot for particular request I used PurePath option but it is not showing time taken by each method at each layer. Can anyone suggest how to find time taken by each method in reactive request? which option needs to use.

Using Dynatrace as SaaS Vesrion 1.195.115.20200616-204130

---

<div class="post-metadata">

**Author:** ![JamesKitson](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jameskitson/32/22460_2.png) [@JamesKitson](https://community.dynatrace.com/u/JamesKitson)\
**Post date:** [June 18, 2020, 2:34pm UTC](https://community.dynatrace.com/t/find-time-taken-by-each-method-for-a-reactive-rest-request/19618/2 "2020-06-18T14:34:10Z")

</div>

If you had certain important methods that you wanted to track one option would be defining custom services for those methods. This would turn those method calls into their own standalone services which makes tracking them a bit easier but it also adds another step/service to your purepaths so you don’t want to use them too much just for tracking method calls.

The other thing that I think would be more useful would be to use the method hotspots which can provide you with an idea of which methods are contributing the most to response times within that service. This is the only view/tool that can provide you something like the aggregate findings you would get if you manually analyzed each purepath.

> **[Service response time hotspots in Services Classic](https://docs.dynatrace.com/docs/observe/application-observability/services-classic/services-page/service-response-time-hotspots)**
>
> Identify the activities that consume the most response time for each service.
