# What are the practical advantages of creating custom API detection rules?

**URL:** <https://community.dynatrace.com/t/what-are-the-practical-advantages-of-creating-custom-api-detection-rules/47645>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, services-classic\
**Created:** [September 13, 2024, 12:29pm UTC](https://community.dynatrace.com/t/what-are-the-practical-advantages-of-creating-custom-api-detection-rules/47645 "2024-09-13T12:29:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 13, 2024, 12:29pm UTC](https://community.dynatrace.com/t/what-are-the-practical-advantages-of-creating-custom-api-detection-rules/47645/1 "2024-09-13T12:29:13Z")

</div>

Hi Dynatrace community members,

from practical point of view:

1. what are the advantages of creating custom API detection rules?
2. when to create custom API detection rules?

Thanks.

---

<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:** [September 16, 2024, 6:09am UTC](https://community.dynatrace.com/t/what-are-the-practical-advantages-of-creating-custom-api-detection-rules/47645/2 "2024-09-16T06:09:09Z")

</div>

Typical usage is in service diagnostics - method hotspots, CPU profiling or also in the code level tab. One can quicky identify particular libraries or components your application is using.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 16, 2024, 6:32am UTC](https://community.dynatrace.com/t/what-are-the-practical-advantages-of-creating-custom-api-detection-rules/47645/3 "2024-09-16T06:32:07Z")

</div>

Thanks&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;for your inputs.

---

<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:** [September 16, 2024, 6:38am UTC](https://community.dynatrace.com/t/what-are-the-practical-advantages-of-creating-custom-api-detection-rules/47645/4 "2024-09-16T06:38:03Z")

</div>

Modern applications often utilize various frameworks, leading to lengthy stacktraces in method hotspots and exceptions.  
APIs help quickly identify the component and its ownership responsible for a hotspot or performance degradation.  
API detection rules analyze a stacktrace frame and classify it based on classes (Java, .NET, PHP) or files (Node.js, PHP, GO), depending on the technology.

These rules are executed sequentially, with the first match determining the API. By marking APIs as third-party, you can concentrate on non-third-party APIs.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 16, 2024, 7:54am UTC](https://community.dynatrace.com/t/what-are-the-practical-advantages-of-creating-custom-api-detection-rules/47645/5 "2024-09-16T07:54:28Z")

</div>

Thanks&nbsp;[@PacoPorro](https://community.dynatrace.com/user/40713),&nbsp; I’m aware of it.  
I mean is there extended level of such feature utilization.

Kindly let me know if you exposed a specific scenario.

---

<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:** [September 16, 2024, 8:02am UTC](https://community.dynatrace.com/t/what-are-the-practical-advantages-of-creating-custom-api-detection-rules/47645/6 "2024-09-16T08:02:30Z")

</div>

A common scenario is identifying the code generated by external subcontractors. (If a correct nomenclature has been defined in the classes)
