Open nkvignesh opened 1 week ago
Thanks for reporting the issue, we will look into it.
Just to clarify, it's not a new problem introduced in the new version. I tested 1.32.4 and it didn't work with JDK23.
I was using 1.28.1 with JDK17, no issues observed. With JDK23, either 1.28.1 or the latest (1.32.5) didnt work.
Does that mean otel is not yet compatible with JDK23?
ADOT SDK is currently based on 1.32.1
while the primary version of OTEL SDK is on 2.10.x
.
I see the latest OTEL SDK is JDK23 compatible: https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/12329/files.
I believe it's an issue with 1.32.1
. We are upgrading the ADOT SDK to 2.x
and if it cannot catch up with the next release, we may want to fix the JDK 23 compatibility issue.
what is the timeline for JDK23 compatibility issue fix for the ADOT libs?
We will update here once we have a clear timeline.
Describe the bug AWS Otel java instrumentation v1.32.5 looks to be not compatible with JDK23. OpenTelemetry Javaagent failed to start.
Steps to reproduce Test Application
To Run Open Telemetry
What did you expect to see? OpenTelemetry agent up & running without any initialization issue.
Expected Output
What did you see instead? OpenTelemetry agent failed to start
Additional context If I apply the workaround, it works. But It will be unlikely that the workaround will be accepted in the production code base.
Workaround export JDK_JAVA_OPTIONS="--add-opens java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED"