Skip to content

Fix PeerServiceAttributesExtractor#createUsingReflection() - #3378

Merged
anuraaga merged 2 commits into
open-telemetry:mainfrom
mateuszrzeszutek:fix-PeerServiceAttributesExtractor-reflection
Jun 23, 2021
Merged

Fix PeerServiceAttributesExtractor#createUsingReflection()#3378
anuraaga merged 2 commits into
open-telemetry:mainfrom
mateuszrzeszutek:fix-PeerServiceAttributesExtractor-reflection

Conversation

@mateuszrzeszutek

Copy link
Copy Markdown
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?

@anuraaga anuraaga left a comment

Copy link
Copy Markdown
Contributor

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
schmikei pushed a commit to schmikei/opentelemetry-java-instrumentation that referenced this pull request Apr 17, 2025
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