You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sirona.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2013/11/24 20:44:22 UTC
new javaagent
Hi
just added a sirona javaagent.
ATM it just uses
https://svn.apache.org/repos/asf/incubator/sirona/trunk/agent/javaagent/src/main/java/org/apache/sirona/javaagent/AgentCounter.java
to monitor intercepted classes (I'll write doc tomorrow normally) but
it is an open door to far more (instrumenting servlets, filters etc
without custom filters, getting jaxrs without hacking filter like and
needing jaxrs config etc...)!
For people wanting to hack it there is a JavaagentRunner:
https://svn.apache.org/repos/asf/incubator/sirona/trunk/agent/javaagent/src/test/java/org/apache/sirona/javaagent/JavaAgentRunner.java.
Just add it like in this test
https://svn.apache.org/repos/asf/incubator/sirona/trunk/agent/javaagent/src/test/java/org/apache/test/sirona/javaagent/SimpleTest.java
ensuring the class you want to intercept are in package
org.apache.test.sirona (org.apache.sirona is excluded) and their class
name ends with "Transform".
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau