Technical prerequisites
- Runtime: Kotlin/JVM on Java 17 or later. This guide does not apply to Kotlin/JS or Kotlin/Native.
- Metadata: The Git commit SHA used to build your deployed application.
- Debug information: Preserve source filenames, line numbers, and local variable metadata in your compiled classes so probes can resolve
.ktsource locations and capture locals.
Installation
Download the agent JAR. Replace<LATEST_VERSION> with a version from Maven Central:
-javaagent to the application JVM.
Initialization walkthrough
1
Set environment variables
Export these variables before starting your application. Replace the service ID with the UUID from your HyperProbe dashboard:Use
git rev-parse HEAD for local runs. In CI/CD, set GIT_COMMIT to the commit used to build the deployed artifact. The agent does not start if it is missing or set to unknown.2
Attach the agent
Choose how you start your application. These examples assume the downloaded JAR is in your project root and the environment variables above are set.Replace Keep your existing Kotlin
- Executable JAR
- Spring Boot (Gradle)
- Spring Boot (Maven)
build/libs/app.jar with your executable application JAR.main function unchanged. The agent starts before your application.Docker deployment
Copy the downloaded agent and your built application into the image. Adjust the application JAR path to match your build output:Dockerfile
Configuration and environment variables
Kotlin uses the same environment variables and defaults as Java. See the complete environment variable reference for performance limits, capture depth, redaction, logging, and trace ID hooks. To disable the agent at startup, setHYPERPROBE_DISABLED=YES.