All Apps and Add-ons

JVM Instrumentation Agent: What is the purpose of SplunkClassFileTransformer and its functionality?

Engager

I am trying to understand the need for SplunkClassFileTransformer class and its functionality. Can someone explain me the usage / purpose of SplunkClassFileTransformer?
I am not sure I understand the need for it

0 Karma

Ultra Champion

Engager

But why do we need to transform the classes?

0 Karma

Ultra Champion

To add tracing instructions into your code AFTER it has been compiled into bytecode :
http://www.correlsense.com/java-bytecode-instrumentation-an-introduction/

0 Karma