-
Notifications
You must be signed in to change notification settings - Fork 96
Add Spring Boot integration. #8
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
Conversation
By implementing `SpringApplicationRunListener`, we can install the agent very early in the lifecycle (`starting` phase).
| * This {@link SpringApplicationRunListener} installs the agent when an app is starting | ||
| * by calling {@link BlockHound#install(BlockHoundIntegration...)}. | ||
| */ | ||
| public class BlockHoundRunListener implements SpringApplicationRunListener, Ordered { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@philwebb does it have to be public, or I can make it internal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@philwebb, has the Boot team considered making the methods in SpringApplicationRunListener interface default methods now that Java 8 is the baseline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, will add an issue. That API is somewhat unusual as it mainly exists to break a package tangle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, will add an issue.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@philwebb anything to say about the visibility of this class? 😊
spring/src/main/java/reactor/blockhound/spring/BlockHoundRunListener.java
Outdated
Show resolved
Hide resolved
|
I'm going to close this PR since we have a more generic JUnit Platform integration now (see #13) |
By implementing
SpringApplicationRunListener, we can install the agentvery early in the lifecycle (
startingphase)./cc @OlegDokuka @philwebb @sbrannen @sdeleuze @ryanjbaxter @spencergibb