This module is an extension to existing OpenTelemetry JavaAgent
- Download the latest version of opentelemetry-javaagent.jar .
- Add the agent definition to your application run command as follows:
java -javaagent:path/to/opentelemetry-javaagent.jar \
-jar myapp.jar
- Download the latest version of digma-otel-agent-extension.jar
- Add the extension definition as follows:
java -javaagent:path/to/opentelemetry-javaagent.jar \
-Dotel.javaagent.extensions=path/to/digma-otel-agent-extension.jar \
-jar myapp.jar
- SpringMVC - supports instrumenting annotation of @Controller and @RestController. it includes SpringBoot applications which use those common annotations.
- JAX-RS 2.0
- GRPC 1.6 - see GRPC Library
Known issue: currently (as of 0.5.30), if you have your own server side interceptors, Digma interceptor won't work correctly. (see issue #19).
The extension supports overriding default values through environment variables or SystemProperties. here are the available config entries:
Description | Environment Variable | System Property | default value |
---|---|---|---|
Allows defining environment name. values for example: PROD, CI |
DEPLOYMENT_ENV | DEPLOYMENT_ENV | [local] |
Package prefixes of you application/service. value is comma separated. value for example: com.mycomp.myservice,aaa.bbb.ccc |
CODE_PACKAGE_PREFIXES | CODE_PACKAGE_PREFIXES |
This OpenTelemetry agent-extension is based on the Otel Extension Example