'How to trace specific methods/classes with NewRelic in Java?
I know there is a way to trace any methods you want, thanks to an annotation named @Trace, but if i use this annotation I will need to alter source code for all methods that I want to trace, not a good way I think. So, do you know if any of below is possible or not?
1- Tracing a custom annotation by xml configuration. (For example, tracing all methods which are annotated with @CustomAnnotation)
2- Tracing all methods of all implementers/extenders of a Interface/Class, again by xml configuration.
3- Do you know any other generic ways to success this?
Solution 1:[1]
New Relic does allow instrumentation using XML files. Some examples.
There is also the custom instrumentation editor.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | André Onuki |
