Skip to content
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

Merged
merged 6 commits into from
Sep 15, 2020

Conversation

anuraaga
Copy link
Contributor

@anuraaga anuraaga commented Sep 4, 2020

…2 instrumentation.

This adds support for instrumentation to "inject" resource files into classloaders. It does this by intercepting the getResource method on ClassLoader and have it read from the injected files, which are stored into the bootstrap classloader when applying instrumentation.

@anuraaga
Copy link
Contributor Author

anuraaga commented Sep 4, 2020

Guess muzzle issue just required a clean :D

Anuraag Agrawal added 2 commits September 14, 2020 11:47
…-instr-java into support-injecting-resources
…RLs directly instead of reading to byte array first.
@anuraaga anuraaga marked this pull request as ready for review September 14, 2020 04:36
@iNikem
Copy link
Contributor

iNikem commented Sep 14, 2020

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
@anuraaga
Copy link
Contributor Author

@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 :)

@anuraaga
Copy link
Contributor Author

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

@anuraaga anuraaga merged commit a9f0e21 into open-telemetry:master Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants