-
Notifications
You must be signed in to change notification settings - Fork 161
Event externalization bootstrap should log which event types it's configured to externalize. #1130
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
Comments
Hi! You previously asked if I was interested in this issue, and after reading through the code, I’ve decided to give it a try I was thinking of updating the supports(…) method in DefaultEventExternalizationConfiguration to add the logging. Does that sound like the right place? Also, one quick question: would it be acceptable to add a logging dependency to spring-modulith-events-api for this purpose? Thanks in advance! |
I wouldn't want to issue that log over and over again on each attempt. Especially as the predicate makes it difficult to produce human-readable output why we select a particular event for externalization or not. I think Oh, I don't think we need any elaborate testing, as it's log output only. |
I have a quick clarification regarding the debug logging for event externalization. In the EventExternalizationAutoConfiguration.eventExternalizationConfiguration() method, it looks like we only configure the filter using EventExternalizationConfiguration.defaults(...), and the actual decision about whether an event is externalized or not happens later when the predicate is applied. Given that, I wanted to confirm your intention: The reason I ask is that determining the actual externalized events at this point would likely require scanning the entire classpath — which might be beyond the intended responsibility of this configuration class and could introduce unnecessary overhead. Thanks in advance for your guidance! |
The former. |
Thank you for the clarification! |
Original pull request: GH-1135 Signed-off-by: 조상준 <[email protected]>
Simplify output to one line. Formatting, authorship.
That's polished and merged, thanks! |
The analysis of this sample project here made obvious, that it's difficult to detect that events from modules not included in test runs are not subject to application module scoped integration tests. A simple log message that describes which events are selected for externalization.
We should add a bit of debug-level logging to help to diagnose such problems.
The text was updated successfully, but these errors were encountered: