Java Installation
Integrate Hud Java Agent for enhanced observability in your application in a few simple steps
1. Create environment variables
Create the following environment variables:
HUD_KEY- Hud API key, use the key for the relevant environment from hereHUD_SERVICE- your service name
2. Download the Hud's Jar
Use curl to download Hud's Jar.
curl -L -o hud-sdk.jar https://github.com/code-hud/java-sdk-releases/releases/latest/download/hud-sdk.jar
How to pin a fixed version?
Browse available versions at github.com/code-hud/java-sdk-releases/releases, then replace
latest with the version tag:
curl -L -o hud-sdk.jar https://github.com/code-hud/java-sdk-releases/releases/download/v0.2.x/hud-sdk.jar
3. Add Hud to your service start command
java -javaagent:./hud-sdk.jar -Dio.hud.includeDomains=[package_name1];[package_name2];... -jar [app.jar]Where:
[package_name1];...are the packages to monitor, and could be just their start, e.g.companyname[app.jar]is your application jar
4. Run your service and trigger it!
Start your service and trigger the functions you want to measure - metrics collection will begin automatically.
Then, head over to the web app to explore your data live.
Need help? Use Hud's Chat with our support team or email us at [email protected] .
Updated 6 days ago
Did this page help you?

