-
Notifications
You must be signed in to change notification settings - Fork 116
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
Enable users to determine 'winning' source for a value - where is it coming from? #312
Comments
It is useful to find out which source serves the config. I think it can be down but not tie with a dedicated method. config.wrap() as discussed #84 might be a good fit for this. Any other useful details can be logged there. We can provide a noop impl for this. The implementor can choose what do you want to provide in this method. One good suggestion is to provide the info noted in this issue. |
@gunnarmorling what do you think? Is this a good use case? |
We had a similar discussion in the ConfigJSR eclipse/ConfigJSR#10. I think that the mp-config implementation should have tools to help resolve/analyze the configuration that is provided to the application. |
Note that the immutability discussion in #432 and the caching discussion in #370 are directly relevant here. If the configuration is immutable, then a method could be provided which returns the |
#43 should be able to figure out which configsource a particular config is coming from. By the way, I don't think the immutability has something to do with this one as the config_ordinal is static and newly added configure source will not be discovered after app starts. |
It does. What I said above applies to the implementation option of a method which provides the |
This is now possible with #551. |
When working with the issue described in #310. Resolving the cause of the problem took longer as it was not initially obvious that a environment variable was being overridden by a system property of the same name.
Should a 'source' of a value be identified by something in the API or by implementation specific debug/trace? (Or the latter making use of the former.)
The text was updated successfully, but these errors were encountered: