Yes, you can exclude specific classes, methods or application packages from being instrumented by the Java agent.
To exclude packages from being instrumented, implement the following steps:
- Add the below key in apminsight.conf file
exclude.packages=<packages name>
|
- Provide the package name to be excluded as values
- Add multiple packages by separating each one with a comma
- Restart the app server for the changes to take effect
Example:
exclude.packages=com.manageengine.apminsight.*, com.manageengine.agent.*
|
Note: This feature is available from Java agent Version 4.9.0 onwards.