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

Fix PeerServiceAttributesExtractor#createUsingReflection() #3378

Conversation

mateuszrzeszutek
Copy link
Member

PeerServiceAttributesExtractor is located in the bootstrap classloader, all NetAttributesExtractor implementations are in the application classloaders - we need to pass the application classloader (from any helper class that was already injected) to make loading extractors correctly possible.

@anuraaga WDYT about moving NetAttributeExtractor library implementations to their respective internal packages and just using those classes normally, without this hack?

Copy link
Contributor

@anuraaga anuraaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heh yeah internal package seems like a good idea

@anuraaga anuraaga merged commit 256f2c9 into open-telemetry:main Jun 23, 2021
@mateuszrzeszutek mateuszrzeszutek deleted the fix-PeerServiceAttributesExtractor-reflection branch November 18, 2022 10:28
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.

4 participants