Bytecode transformation agent that can be used to add metric collection