# Exclude monitoring of a specific Method in onAgent

**URL:** <https://community.dynatrace.com/t/exclude-monitoring-of-a-specific-method-in-onagent/41956>\
**Category:** Open Q&A\
**Tags:** oneagent\
**Created:** [October 6, 2023, 11:00am UTC](https://community.dynatrace.com/t/exclude-monitoring-of-a-specific-method-in-onagent/41956 "2023-10-06T11:00:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [October 6, 2023, 11:00am UTC](https://community.dynatrace.com/t/exclude-monitoring-of-a-specific-method-in-onagent/41956/1 "2023-10-06T11:00:43Z")

</div>

Hello,

As we all know you can turn features within oneAgent on and off,

 ![henk_stobbe_0-1696589774966.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/7/878e62c769b5b3162e05064bd5cad045bc4a8c24.png)

But one level deeper, is it possible to find out what methods Dynatrace injects and or is it possible to exclude a specific method?

(I can imagine that above is simply internal)

KR Henk

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [October 6, 2023, 11:19am UTC](https://community.dynatrace.com/t/exclude-monitoring-of-a-specific-method-in-onagent/41956/2 "2023-10-06T11:19:55Z")

</div>

Hello&nbsp;[@henk\_stobbe](https://community.dynatrace.com/user/11427)

As I know from my experience (I have several cases) it is not possible.

If you have Dynatrace features (sensors) (parts of OneAgent) that instruments some endpoint classess/methods you can only switch it OFF or ON.

For this cases Support highly recommended use OneAgent SDK and instrument only methods that have value for Customer team.

Anyway, if this behavior has changed, I will be happy to see that I am wrong&nbsp;:grinning\_face:

Also, btw, from a research perspective, you can reach the support. They have all the tools to determine what happens during the instrumentation process.

Regards,

Alex Romanenkov

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [October 6, 2023, 11:36am UTC](https://community.dynatrace.com/t/exclude-monitoring-of-a-specific-method-in-onagent/41956/3 "2023-10-06T11:36:58Z")

</div>

Hi Alex,

Maybe in a furure release!

Look below at the time, is is a bug or can we time travel (-;

 ![henk_stobbe_0-1696592157380.png](https://global.discourse-cdn.com/dynatrace/original/3X/0/8/08971462de23e087462ff901437e3db1d07df3e5.png)

Thanks Henk

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Al3x](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_al3x/32/36257_2.png) [@Romanenkov\_Al3x](https://community.dynatrace.com/u/Romanenkov_Al3x)\
**Post date:** [October 6, 2023, 12:50pm UTC](https://community.dynatrace.com/t/exclude-monitoring-of-a-specific-method-in-onagent/41956/4 "2023-10-06T12:50:26Z")

</div>

Looks like my fault, I’ve changed the message 100500 times.
