# Oneagent custom method capture

**URL:** <https://community.dynatrace.com/t/oneagent-custom-method-capture/19633>\
**Category:** Open Q&A\
**Tags:** services-classic, oneagent\
**Created:** [June 19, 2020, 5:11am UTC](https://community.dynatrace.com/t/oneagent-custom-method-capture/19633 "2020-06-19T05:11:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![gopikrishnanr](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gopikrishnanr](https://community.dynatrace.com/u/gopikrishnanr)\
**Post date:** [June 19, 2020, 5:11am UTC](https://community.dynatrace.com/t/oneagent-custom-method-capture/19633/1 "2020-06-19T05:11:38Z")

</div>

Hi Team,

As in Appmon we have sensor placement feature which helps in

1) start a purepath with that method mentioned in sensor

2) capture the method in any relevant purepath where in the purepath tree method will be shown

So in Oneagent point 1 can be achieved by custom service detection and a new service will be created for that particular method but how to achieve point 2 in oneagent where I need to capture the method in a service which is already detected.

Thanks,

Gopikrishnan

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 19, 2020, 6:39am UTC](https://community.dynatrace.com/t/oneagent-custom-method-capture/19633/2 "2020-06-19T06:39:20Z")

</div>

1) is correct, Custom service is the approach.  
2) Still, Custom service is the approach to take also in the this case. A new service will be created and if you view PurePath from the already detected service, it will be shown as a called service.  
Depending on your use case, method hotspot analysis might be also useful.

---

<div class="post-metadata">

**Author:** ![gopikrishnanr](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gopikrishnanr](https://community.dynatrace.com/u/gopikrishnanr)\
**Post date:** [June 19, 2020, 7:27am UTC](https://community.dynatrace.com/t/oneagent-custom-method-capture/19633/3 "2020-06-19T07:27:32Z")

</div>

Hi Julius,

Is there any option to not make it as a separate service and show it in the existing purepath tree itself?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 19, 2020, 7:49am UTC](https://community.dynatrace.com/t/oneagent-custom-method-capture/19633/4 "2020-06-19T07:49:04Z")

</div>

No, it will always be a separate service. This is a difference from Appmon behaviour.

What use case are you trying to solve?

---

<div class="post-metadata">

**Author:** ![gopikrishnanr](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gopikrishnanr](https://community.dynatrace.com/u/gopikrishnanr)\
**Post date:** [June 19, 2020, 7:59am UTC](https://community.dynatrace.com/t/oneagent-custom-method-capture/19633/5 "2020-06-19T07:59:01Z")

</div>

There is a websocket communication happening in my application and I have created a custom service for the same. Though the front end response time is high I cannot see the same in dynatrace. Front end is having 4 seconds response but custom service shows response time in ms. So I guess there are more methods before or after which are not captured and need to capture the same.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 19, 2020, 10:22am UTC](https://community.dynatrace.com/t/oneagent-custom-method-capture/19633/6 "2020-06-19T10:22:09Z")

</div>

And what is the response time at service which is the entry point?

---

<div class="post-metadata">

**Author:** ![gopikrishnanr](https://avatars.discourse-cdn.com/v4/letter/g/3bc359/32.png) [@gopikrishnanr](https://community.dynatrace.com/u/gopikrishnanr)\
**Post date:** [June 19, 2020, 10:27am UTC](https://community.dynatrace.com/t/oneagent-custom-method-capture/19633/7 "2020-06-19T10:27:19Z")

</div>

There is only this one custom service as of now I have configured and this is showing response time in ms. Now am still asking the developer whether there is any other entry point except this because I cannot see where the response time is spent since browser shows 4 secs response time.
