-
Notifications
You must be signed in to change notification settings - Fork 33
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
[FEATURE] Implement logging hook #998
Comments
So what I understand is that we have to create a hook that will be used to log the messages during flag life-cycle |
Yep - and also remove any non-debug logging in hot code-paths. |
Hi @Rahilsiddique, is this something you're still interested in working on? |
@beeme1mr / @toddbaert - I'm happy to take this issue on as my first issue. I can target a few weeks to have a PR opened for folks to take a look at. |
Thanks @kevinmlong! |
@beeme1mr / @toddbaert - trying to understand a few things when working on this issue. It appears that |
Looking at the spec (https://github.com/open-feature/spec/blob/main/specification/appendix-a-included-utilities.md#logging-hook) seems we should be using |
|
Understood on the alias for
|
I think so too @kevinmlong. When using the logging hook, i think it is safe to assume that everything that was given to debug should also be seen. But I think it would make sense to not go for a |
💯
We could do this, and maybe make the level info by default. With the other changes in this PR (not logging at all during hot paths) that might be OK. |
@beeme1mr / @toddbaert - I started a draft PR (#1114) for the LoggingHook implementation. I could use some guidance on the "hot path" and what that means. |
Hey @kevinmlong, a "hot path" is the code executed during a feature flag evaluation. Examples of non-hot paths would be registering a provider or hook. Basically, we're trying not to spam logs for actions that could happen at high frequency. |
Requirements
Java implementation: open-feature/java-sdk#1084
The text was updated successfully, but these errors were encountered: