stagemonitor / stagemonitor-mailinglist

GitHub issues abused as a mailing list
3 stars 0 forks source link

Get Metrics without changing the code of an existing application #64

Open ShehanPerera opened 6 years ago

ShehanPerera commented 6 years ago

Hi , In stagemonitor-standalone-test there is @MonitorRequests annotation used to monitor the requests. Is there an API to instrument my own classes without adding annotations. Basically, monitor a method in a custom class and add a metric. I don't want to change the code of the existing application. Is it possible ?

ShehanPerera commented 6 years ago

I just saw this wiki page: https://github.com/stagemonitor/stagemonitor/wiki/Integrate-stagemonitor-into-non-servlet-based-applications

I hope I can instrument my classes by extending AbstractTracingTransformer and registering it. I will check on this.