Repository navigation
feat: Logging Hook - #139
Open
NeaguGeorgiana23 wants to merge 32 commits into
Open
NeaguGeorgiana23 wants to merge 32 commits into
NeaguGeorgiana23 wants to merge 32 commits into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Comment |
NeaguGeorgiana23
force-pushed
the
logging_hook
branch
from
September 15, 2026 13:33
826738a to
3d4f9a4
Compare
NeaguGeorgiana23
changed the base branch from
main
to
hook_execution_lifecycle
September 15, 2026 13:37
NeaguGeorgiana23
added this pull request to stack #142
September 15, 2026 13:38
NeaguGeorgiana23
force-pushed
the
logging_hook
branch
from
September 15, 2026 13:41
3d4f9a4 to
7f804d3
Compare
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
NeaguGeorgiana23
force-pushed
the
logging_hook
branch
from
September 15, 2026 14:44
1598825 to
45e5c83
Compare
m-olko
reviewed
Sep 15, 2026
m-olko
left a comment
Contributor
There was a problem hiding this comment.
I haven't finished the review, but I think I left enough comments. Please let me know when you fix them, I will continue with the review
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
NeaguGeorgiana23
force-pushed
the
logging_hook
branch
from
September 21, 2026 08:09
8c89be8 to
860cd0e
Compare
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
NeaguGeorgiana23
force-pushed
the
logging_hook
branch
from
September 21, 2026 08:20
860cd0e to
788658b
Compare
NeaguGeorgiana23
removed this pull request from stack #142
September 21, 2026 08:26
NeaguGeorgiana23
force-pushed
the
logging_hook
branch
from
September 21, 2026 08:31
788658b to
38bc034
Compare
…/cpp-sdk into global_hook_manager
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
NeaguGeorgiana23
force-pushed
the
logging_hook
branch
from
September 21, 2026 13:45
38bc034 to
e2c2cad
Compare
…ature/cpp-sdk into hook_execution_lifecycle
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
NeaguGeorgiana23
force-pushed
the
logging_hook
branch
from
September 21, 2026 13:57
e2c2cad to
244b69d
Compare
…into logging_hook
NeaguGeorgiana23
added a commit
that referenced
this pull request
Sep 22, 2026
## This PR Moves all linter fixes from PR #139 here. --------- Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
m-olko
reviewed
Sep 30, 2026
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
oxddr
reviewed
Oct 2, 2026
Comment on lines
+12
to
+24
| class OpenFeatureException : public std::runtime_error { | ||
| public: | ||
| explicit OpenFeatureException(ErrorCode error_code, | ||
| const std::string& message = "") | ||
| : std::runtime_error(message.empty() ? std::string(ToString(error_code)) | ||
| : message), | ||
| error_code_(error_code) {} | ||
|
|
||
| ErrorCode GetErrorCode() const noexcept { return error_code_; } | ||
|
|
||
| private: | ||
| ErrorCode error_code_{ErrorCode::kGeneral}; | ||
| }; |
Contributor
There was a problem hiding this comment.
I personally find creating an exception just for sake of grouping error-related information together confusing. Given we don't throw exceptions in the SDK, but we use absl::Status instead, I'd opt for creating struct of (absl:Status, error_message) instead.
Signed-off-by: NeaguGeorgiana23 <neagugeorgiana@google.com>
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR
LoggingHookas mentioned in the OpenFeature specification.LogLevelandLogCallbackfor pluggable loggers with standard stream defaults.Before,After,Error,Finally) with optional evaluation context logging.OpenFeatureExceptionhierarchy with associatedErrorCodevalues.ToString()) and streaming operators forEvaluationContext,Reason,ErrorCode, andValue.Related Issues
Fixes #138