A system and method for coupling a distributed statistical records ("DSR")
collection system with a tracing system utilizing bytecode modification
techniques. In one embodiment, a distributed statistical records ("DSR")
module initially identifies one or more application components within the
application server to be traced. A bytecode modification module
responsively modifies the bytecode of the one or more application
components. The modifications are directed to a particular set of methods
of the application components (e.g., methods which are relevant to DSR
data). A dispatch unit registers the method invocations and
method-related information associated with the particular set of methods
and provides the method-related information to the DSR module. Finally, a
DSR interface module translates the method-related information to a
format employed within a DSR system and forwards the translated
information to the DSR system.