-
Notifications
You must be signed in to change notification settings - Fork 880
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
Javaagent doesn't work with java.net.spi.InetAddressResolverProvider #7130
Comments
The agent probably loads the resolver first, using the agent classloader (not the system CL, as the Javadoc suggests): https://github.com/openjdk/jdk/blob/f2acdfdcbd2a49c1167656e73b67b38b545f9472/src/java.base/share/classes/java/net/InetAddress.java#L477-L482 |
Tks for your help mateuszrzeszutek : with your comment i found a workaround. |
This issue is similar to #10921 I have propose the following solution: #10921 (comment) What do you think about it @mateuszrzeszutek @laurit |
@serkan-ozal you are welcome to create a PR. If I were to attempt solving this I'd probably attempt transforming the |
Hmm, thanks for pointing out. Will check |
I use opentelemetry-javaagent - version: 1.19.2 :
INFO io.opentelemetry.javaagent.tooling.VersionLogger - opentelemetry-javaagent - version: 1.19.2
I work with java 18 because i need InetAddressResolverProvider : https://docs.oracle.com/en/java/javase/18/docs/api/java.base/java/net/spi/InetAddressResolverProvider.html.
When I launch my app without opentelemetry-javaagent the InetAddressResolverProvider works.
When I launch my app with opentelemetry-javaagent the InetAddressResolverProvider doesn't works.
The text was updated successfully, but these errors were encountered: