-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime attach enhancements for JDK 21+ #798
Comments
I'm curious if |
I've never used that mechanism, but having spent 41 seconds reading about it it sounds like |
our use of dynamic attach is already limited to "very early in the lifecycle". so I'm thinking in our case, they both seem to address the same use case "how do I bundle up the OTel Javaagent inside of my application" (I also only just learned about |
Related: https://openjdk.org/jeps/451 |
The runtime attachment of the Java agent still works with Java 21 with this warning:
|
The smoke tests of the OTel Java instrumentation repo seem well suited to do this. Could the runtime attach component be moved to the instrumentation repo? |
It looks like we've discussed this in the past 😄 2022/7/8 meeting:
2022/10/13 meeting:
I'm supportive of this. Can you open an issue in the opentelemetry-java-instrumentation repo to propose this? |
Issue created in the Java instrumenation repository: open-telemetry/opentelemetry-java-instrumentation#9745 |
Reference: https://mail.openjdk.org/pipermail/jigsaw-dev/2023-March/014816.html
The intention is to disable allowing dynamic attach of agents by default starting with Java 21. The runtime attach component should at a minimum enhance the README to mention the newly required JVM commandline arg. It would also be great to have a test/example to cover this use and demonstrate that it [still] works after 21.
The text was updated successfully, but these errors were encountered: