1. Custom instrumentation in Java agent can be achieved using Java
annotations. It is at the method level. So, you can move the portion
of the code that you want to monitor to a separate method and add
annotations, for it to be tracked separately. Refer our help doc https://www.site24x7.com/help/apm/java-agent/custom-instrumentation-using-java-annotations.html
for detailed instructions. If you are looking for adding custom
metrics / parameters to be tracked, we are yet to support that. But,
using this custom instrumentation, you can track any class / method /
portion of your java code.
2. Again, Spring controller packages can be included as custom
packages in configuration file and you will be able to track those
classes and methods.
But, using custom instrumentation will get details in transactions
and traces tab. The exception details may not be captured in
exceptions tab. We will include these spring controller packages for
exception handling and release it in our next update. Will keep this
space updated too.
Until then, you can use our custom instrumentation feature for your
requirements. Hope this helps.