This repository contains a simple Java application to calculate the nth number (between 1-90) in the Fibonacci sequence. It has no front end and runs locally in a terminal window. The built in load generator will generate and error every 4th attempt as it attempts to calculate a number outside of 1-90 on these attempts.
This application has been set up to be instrumented with New Relic APM. For similar versions of this same application, see the following repositories:
-
From a new terminal window, clone this repository to your local machine using Git
git clone https://github.com/Bijesse/fibonacci-java-apm
-
Navigate into your new workspace using cd
fibonacci-java-apm
-
Export your ingest license key:
export NEW_RELIC_LICENSE_KEY='your_license_key'
- Build and run the app:
gradle bootRun
- To generate traffic, run:
./load-generator.sh
- Navigate to your New Relic account to see your data!