For some languages like Node.js and Golang, Dynatrace provides detection based on modules and packages. It uses a basic set of predefined APIs for Java and .NET. However, for others, Dynatrace allows you to create custom API definitions for the various frameworks in your environment. Custom API definitions are used to further segment the API breakdown and make it easier to quickly see which frameworks contain hotspots.
By using a custom-created API definition called
easyTravel, Dynatrace will be able to identify all easyTravel-related method calls as part of the easyTravel-specific code.
To add a user-defined API detection rule:
Go to Settings > Server-side service monitoring > API detection rules.
Click the Create API detection rule button.
Type the name of the API. The API name in this example is easyTravel.
Click the Add new condition button. The pattern to be used for identifying the API in this example is com.dynatrace.easytravel.
Click Confirm to save the new API detection rule.
The user-defined easyTravel API has now been included in the code-level analysis.