-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat: add evaluation details to finally hook #328
Conversation
Signed-off-by: bbland1 <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #328 +/- ##
=======================================
Coverage 88.13% 88.13%
=======================================
Files 14 14
Lines 1408 1408
=======================================
Hits 1241 1241
Misses 143 143
Partials 24 24
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Co-authored-by: Todd Baert <[email protected]> Signed-off-by: Brianna Bland <[email protected]>
@bbland1 has contributed 2 recent changes to the Go SDK: - open-feature/go-sdk#325 - open-feature/go-sdk#328 @bbland1 when merged, this PR will add you to the org. It comes with no obligation but it's the first step on the https://github.com/open-feature/community/blob/main/CONTRIBUTOR_LADDER.md. Please approve or 👍 this PR to signal your interest! Signed-off-by: Todd Baert <[email protected]>
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 good to me. This is more straightforward in Go because there's no try/catch causing scope difficulties with the evalDetails
as in other SDKs.
Thanks again for your 2nd PR (I think) @bbland1 !
Before we release this we'll have to make this (small) breaking change clear in the release notes.... just saying it now so I don't forget it.
@bbland1 consider joining the org: open-feature/community#433
Let's make sure to coordinate with @thomaspoignant. This breaking change was easier in other languages since it was unlikely to affect people. However, this change will definitely have at least some impact and we should do what we can to minimize it. |
@toddbaert thank you, I enjoyed getting to work on the PRs! @beeme1mr & @thomaspoignant if I remember correctly for |
Sorry for the late reply. |
Okay, I'll merged tomorrow unless someone objects. I've also created an issue to upgrade the OTel hook. We'll want to make sure this is released around the same time as the Go SDK. |
This PR
evaluation details
tofinally
hook stageInterfaceEvaluationDetails
similar to theAfter
method of the hookRelated Issues
Fixes #327
Notes
This breaks the signature of the finally stages based on this spec enhancement. It is not considered a breaking change to the SDK because hooks are marked as experimental in the spec, and the change has no impact on known hooks.
Follow-up Tasks
Update the
go-sdk-contrib
repo, with a quick search the few places finally is being used that I saw.How to test