Instrumentation means adding its own special instructions/method into the application code to produce metrics for analysis.
It's the addition of codes to methods for the purpose of gathering data to be utilized by tools.
Since the changes are purely additive, these tools do not modify application state or behavior.
Examples of tools include:
- monitoring agents,
- coverage analyzers,
- and event loggers.