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

Rename ComponentInstaller to AgentListener and add #order() method #3182

Merged

Conversation

mateuszrzeszutek
Copy link
Member

  • I also moved AgentExtension from the ...extension.spi to ...extension package -- we already have SPIs in other packages (...instrumentation) and there's also a note about it in the class Javadoc
  • Added Ordered interface, now implemented by several SPIs

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

I wasn't sure about using "safe" service loader for everything, since the safety is only needed currently for instrumentation modules that are compiled with newer Java versions, but I could imagine other SPI implementations also only applying to newer Java versions, so seems good 👍

…ling/SafeServiceLoader.java

Co-authored-by: Nikita Salnikov-Tarnovski <[email protected]>
@mateuszrzeszutek mateuszrzeszutek merged commit 99be242 into open-telemetry:main Jun 7, 2021
@mateuszrzeszutek mateuszrzeszutek deleted the agent-listener branch June 7, 2021 17:50
robododge pushed a commit to robododge/opentelemetry-java-instrumentation that referenced this pull request Jun 17, 2021
…pen-telemetry#3182)

* Rename ComponentInstaller to AgentListener and add #order() method

* Code review comments

* Update javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/SafeServiceLoader.java

Co-authored-by: Nikita Salnikov-Tarnovski <[email protected]>

Co-authored-by: Nikita Salnikov-Tarnovski <[email protected]>
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.

3 participants