Flashlight is a command line tool that scans the provided java classpath and identifies 'interesting' methods to instrument with OpenTelemetry.
Download the latest release.
Maven:
java -jar flashlight.jar **/target/classes/
Gradle:
java -jar flashlight.jar **/build/classes/java/main/
All options:
java -jar flashlight.jar [-hV] [-b=NUMBER] [-c=NUMBER] <paths>...
<paths>... the folders or jar files to scan
-b, --branch=NUMBER number of branch (if/while/for) instructions considered
interesting (default: 5)
-c, --call=NUMBER number of method call instructions considered
interesting (default: 10)
-h, --help Show this help message and exit.
-V, --version Print version information and exit.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Note: If there is sufficient interest, this project can be donated to OpenTelemetry.