Skip to main content

Java Interceptor


To install Lunar Interceptor, first obtain lunarInterceptor.jar:

wget -O lunarInterceptor.jar


The only required configuration is the LUNAR_PROXY_HOST environment variable. This variable should be set to the host or IP of Lunar Proxy, including the port it is listening on.

For example:

export LUNAR_PROXY_HOST="lunar-proxy:8000"

For more details and other configuration options, refer to our Configuration Guide


Enable the instrumentation agent by using the -javaagent flag with the JVM.

export JAVA_TOOL_OPTIONS="-javaagent:PATH/TO/lunarInterceptor.jar"


java -javaagent:PATH/TO/lunarInterceptor.jar -jar PATH/TO/YOURS.jar
Click me for guidance 😀