You can exclude one or more class names from being instrumented, using the "adeum" excludeClasses
snippet. You can specify the classes that matches the wildcard patterns, see Supported Wildcards.
To exclude named classes from instrumentation, add the class names to the excludeClasses
array, using matching patterns where needed:
...
adeum {
// Excludes all the classes in the android.support.multidex and okio packages.
excludeClasses = ['android.support.multidex.*', 'okio.**']
}
...
JAVA
Include Classes for Instrumentation
If you require to include fewer classes during instrumentation, you can use the "adeum" includeClasses
snippet. Therefore, the agent does not instrument the newly added classes that are not mentioned in includeClasses
. You can specify the classes that matches the wildcard patterns, see Supported Wildcards.
This way it includes only the specified classes and excludes the remaining classes from being instrumented.
...
adeum {
// Includes the classes that are in the codeissues folder.
includeClasses = ['com/appdynamics/everyfeature/codeissues/**']
}
...
CODE
Supported Wildcards
Class names can contain wildcards:
? | For a single character. |
* | For any number of characters, but not the package separator. |
** | For any number of (any) characters. |
$ | Prefix for an inner class name. |