Javaagent jar without version name in the file name #9266
Unanswered
itsmaneesh
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Does https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.29.0/opentelemetry-javaagent.jar work for you? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is there a way to get javaagent jar without a version number associated with it.?
For e.g.: Get opentelemetry-javaagent.jar instead as opentelemetry-javaagent-1.26.0.jar
So that, we avoid changes to our code whenever there is a new one version of javaagent is released?
Rationale for this use case:
I have a lib called
my-lib
that gets the opentelemetry-javaagent as gradleruntimeOnly
dependency.Also have a service
my-service
that use helm chart has been updated to have the below configuration:my-lib
asimplementation
dependency so when I deploy themy-service
service thenopentelemetry-javaagent-1.26.0.jar
gets added to the/app/libs
directorygeneric-chart
(used by many services in our org) that configures the javaagent path using JAVA_TOOL_OPTIONS env variable and other env variables include OTEL specfic variables as well.fpr e.g.: JAVA_TOOL_OPTIONS=-javaagent:/app/libs/opentelemetry-javaagent-1.26.0.jar
In this above scenario, the javaagent version is tightly coupled between the
my-lib
release version andgeneric-chart
release version.If I want to use the latest version of opentelemetry javaagent then I have to upgrade both
my-lib
to use the latest version of opentelemetry javaagent in dependencies and also update thegeneric-chart
to use the latest version jar name in the JAVA_TOOL_OPTIONS and then release a breaking change for both of them.i.e: If any service use the latest version of
my-lib
(that has 1.26.0 javaagent) then they HAVE to use latest version ofgeneric-chart
that adds opentelemetry-javaagent-1.26.0.jar as JAVA_TOOL_OPTIONS, otherwise if service will not start due to javaagent jar file missing.To avoid such breaking changes, I would like to have
my-lib
to get the opentelemetry-javaagent.jar (without version number in thr file name) and use JAVA_TOOL_OPTIONS=-javaagent:/app/libs/opentelemetry-javaagent.jarSo, can you please advice on getting javaagent jar without version number in the file name?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions