Skip to content

feat: OTel hook changes for hook interface updates #644

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

Merged
merged 6 commits into from
Jun 13, 2025

Conversation

bbland1
Copy link
Member

@bbland1 bbland1 commented Mar 5, 2025

This PR

  • bumped the go-sdk version to 1.14.1
  • added evalDetails to the parameters passed in the Finally hook in metrics hook
  • updated the metrics_test to have the new evalDetails

Related Issues

Fixes #642

Notes

  • not sure if there is a specific way to bump the go-sdk version to the unreleased version with the change to the Hook it currently throws an error where it is called in metrics because the type issue
var _ openfeature.Hook = &MetricsHook{}
  • in the issue it states to explicitly mention the breaking but ok because of spec in the release notes, I am not sure if that is something I can do in this PR and I just can't find how in the contributing or if it is after the reviewing

Signed-off-by: bbland1 <104288486+bbland1@users.noreply.github.com>
@bbland1 bbland1 requested a review from a team as a code owner March 5, 2025 20:20
@github-actions github-actions bot requested a review from Kavindu-Dodan March 5, 2025 20:20
@bbland1 bbland1 changed the title feat!: updated OTel finally hook for upcoming changes feat!: OTel hook changes for hook interface updates Mar 5, 2025
@beeme1mr beeme1mr requested a review from toddbaert March 11, 2025 12:38
Copy link
Member

@aepfli aepfli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@bbland1
Copy link
Member Author

bbland1 commented Jun 12, 2025

I see there is another issue about bumping the go-sdk to 1.15 over all because there has been some conflict. This PR still needs to bump to 1.15 which I'm happy to do now that it is out but curious if issue #686 needs to be finished so it is bumped for everyone for me to bump it up here and things to pass?

bbland1 added 2 commits June 13, 2025 15:24
Signed-off-by: bbland1 <104288486+bbland1@users.noreply.github.com>
@sahidvelji
Copy link
Contributor

I don't think we need the ! in the PR title, given that the version of this hook module is at 0.x.

@bbland1
Copy link
Member Author

bbland1 commented Jun 13, 2025

I know when the in #642 it is stated it’s a breaking change but okay because of the spec which is why I put the ! when first doing this before the go-sdk got bumped. I see what you mean though that the module is 0.x it is a bit redundant for where the module is at. @sahidvelji

@bbland1 bbland1 changed the title feat!: OTel hook changes for hook interface updates feat: OTel hook changes for hook interface updates Jun 13, 2025
@beeme1mr beeme1mr merged commit 38b3b6f into open-feature:main Jun 13, 2025
6 checks passed
@bbland1 bbland1 deleted the upgrade-otel-hook branch June 13, 2025 19:45
gdegiorgio pushed a commit to gdegiorgio/go-sdk-contrib that referenced this pull request Jul 19, 2025
Signed-off-by: bbland1 <104288486+bbland1@users.noreply.github.com>
Signed-off-by: Giovanni De Giorgio <giovannidegiorgio1999@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade OTel hook
5 participants