-
Notifications
You must be signed in to change notification settings - Fork 42
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 telemetry helper utils #1346
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: liran2000 <[email protected]>
Signed-off-by: liran2000 <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1346 +/- ##
============================================
+ Coverage 92.80% 93.34% +0.54%
- Complexity 466 478 +12
============================================
Files 43 45 +2
Lines 1125 1157 +32
Branches 90 98 +8
============================================
+ Hits 1044 1080 +36
+ Misses 53 48 -5
- Partials 28 29 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
thank you.
|
* @return an EvaluationEvent populated with telemetry data | ||
*/ | ||
public static EvaluationEvent createEvaluationEvent( | ||
HookContext<?> hookContext, ProviderEvaluation<?> providerEvaluation) { |
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.
Don't we want to use FlagEvaluationDetails
here instead of the ProviderEvaluation
, as pointed out here?
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.
Yes, good catch. The finally
hook was updated in this PR.
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.
The OTel folks requested that we make a couple of changes in the OTel semcon. Let's wait to merge this until those issues have been resolved.
https://cloud-native.slack.com/archives/C07AES1JN56/p1741799036596509
This PR
adds a method to core that returns a semantically valid flag evaluation event
Related Issues
Fixes #1327
Similar to GO PR.