Skip to content

Commit d9815e9

Browse files
committed
add easy way to get agent version
1 parent 5fcecb5 commit d9815e9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/_edot-sdks/java/faq.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ INFO io.opentelemetry.javaagent.tooling.VersionLogger - opentelemetry-javaagent
4141
```
4242

4343
In addition, the `-javaagent:` JVM argument can provide the path to the agent file name, which _might_ also contain
44-
the agent version, for example `-javaagent:elastic-otel-javaagent-1.2.3.jar`
44+
the agent version, for example `-javaagent:elastic-otel-javaagent-1.2.3.jar`.
4545

46-
When the original agent jar file has been renamed, it is still possible to inspect the `Implementation-Version` entry in `META-INF/MANIFEST.MF` file of the agent jar,
46+
Executing the agent jar as an application with `java -jar elastic-otel-javaagent.jar` will provide the agent version on standard output,
47+
which could be relevant to use when the jar file has been renamed.
48+
49+
Also, it is also possible to inspect the `Implementation-Version` entry in `META-INF/MANIFEST.MF` file of the agent jar,
4750
for example with `unzip -p elastic-otel-javaagent.jar META-INF/MANIFEST.MF|grep 'Implementation-Version'`
4851

4952
## What are the versions of the OpenTelemetry upstream dependencies ?

0 commit comments

Comments
 (0)