feat: split EvaluationTrace into reason + error_code#319
Draft
fabriziodemaria wants to merge 6 commits intomainfrom
Draft
feat: split EvaluationTrace into reason + error_code#319fabriziodemaria wants to merge 6 commits intomainfrom
fabriziodemaria wants to merge 6 commits intomainfrom
Conversation
- Added MetricAnnotation message for custom metrics. - Extended EnumValueOptions to include metric annotations. - Refactored LibraryTraces to support multiple trace types: RequestTrace and EvaluationTrace. - Updated telemetry methods to track evaluation reasons and error codes. - Modified tests to validate new trace structures and metrics.
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Made-with: Cursor
Added tracking of evaluation reasons to the telemetry client in the ConfidenceFeatureProvider. This change ensures that the reason for flag resolution is logged, improving visibility into feature flag evaluations.
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.
Summary
Aligns the Java SDK telemetry with the updated proto: splits evaluation tracking into separate
reasonanderror_codefields for finer-grained metrics.EvaluationReason+EvaluationErrorCodeper evaluationgetEvaluationandgetEvaluationFuturetelemetry.protowithEvaluationErrorCodeenum andEVALUATION_REASON_ARCHIVEDRelated PRs
Test plan
ConfidenceIntegrationTestandFeatureProviderTest