-
Notifications
You must be signed in to change notification settings - Fork 791
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
Support injecting resources into classloader and use it in aws-sdk-2.… #1172
Support injecting resources into classloader and use it in aws-sdk-2.… #1172
Conversation
…2 instrumentation.
Guess muzzle issue just required a clean :D |
.../io/opentelemetry/instrumentation/auto/javaclassloader/ResourceInjectionInstrumentation.java
Outdated
Show resolved
Hide resolved
…-instr-java into support-injecting-resources
…RLs directly instead of reading to byte array first.
...rc/main/java/io/opentelemetry/instrumentation/auto/awssdk/v2_2/AwsClientInstrumentation.java
Show resolved
Hide resolved
Probably needs some documentation as well, so that developers of new instrumentation know about this option. |
…-instr-java into support-injecting-resources
…-instr-java into support-injecting-resources
@iNikem Hmm - agree that more documentation is always better than less. But we don't have any docs right now for even normal instrumentation I think - I don't want to start documentation with a corner case :) |
javaagent-bootstrap/src/main/java/io/opentelemetry/javaagent/bootstrap/HelperResources.java
Show resolved
Hide resolved
.../io/opentelemetry/instrumentation/auto/javaclassloader/ResourceInjectionInstrumentation.java
Outdated
Show resolved
Hide resolved
Hmm having more flakiness on github actions than before I think. Will go ahead and merge this since 8 unflaked and it's our most representative build |
…2 instrumentation.
This adds support for instrumentation to "inject" resource files into classloaders. It does this by intercepting the
getResource
method onClassLoader
and have it read from the injected files, which are stored into the bootstrap classloader when applying instrumentation.