-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Allow applications using quakus-info to contribute data to the /info using CDI #38029
Conversation
Thanks, I'll have a look tomorrow |
So if I understand correctly you want to make all implementations of I think it would be safer to have users opt-in to that by explicitly annotating their implementations with any of the standard CDI annotations. |
Another issue I see is that classes under |
Ok I can remove the scan then, and just let user opt-in.
Ok do you want me to move it to Also even If i did test the extension on a local project I can't find any integration-test for this extension AND |
I would say move them to
We have a bunch of tests in here |
Ok in. this case shoulld I completely remove the runtime-spi module ? |
Actually now that I think about it, let's just leave the class in the module and package that it already resides. |
Ok so I have something working with opt-in. But that has a drawback. As long as now one asks specificly to get those Soi for this to work I had to the following to the runtime module @ApplicationScoped
public class ExternalContributorReporter {
@Inject
Instance<InfoContributor> contributors;
public void report(Map<String, Object> finalBuildInfo) {
contributors.forEach(contributor -> finalBuildInfo.put(contributor.name(), contributor.data()));
}
} And use the reporter in the Not sure what we prefere. |
The extension can make the beans of type |
I think we have something nice now |
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.
Looks great!
I just added a small comment worth addressing
extensions/info/runtime/src/main/java/io/quarkus/info/runtime/InfoRecorder.java
Outdated
Show resolved
Hide resolved
Stream removed |
This comment has been minimized.
This comment has been minimized.
Fixed format. |
Can you please squash the commits? |
This comment has been minimized.
This comment has been minimized.
🙈 The PR is closed and the preview is expired. |
/info
enpoint #37994