-
Notifications
You must be signed in to change notification settings - Fork 7
chore: update exclude span rule schema #154
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #154 +/- ##
=========================================
Coverage 22.80% 22.80%
Complexity 75 75
=========================================
Files 65 65
Lines 1741 1741
Branches 53 53
=========================================
Hits 397 397
Misses 1335 1335
Partials 9 9
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
| RuleType convertExcludeSpanRuleRuleType(ExcludeSpanRuleRuleType ruleType) { | ||
| // TODO: remove this check after making this field non-nullable | ||
| if (ruleType == null) { | ||
| return RuleType.RULE_TYPE_UNSPECIFIED; |
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.
Shouldn't this be user?
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.
Ah, right. Updated it now.
| case RULE_TYPE_SYSTEM: | ||
| case RULE_TYPE_UNSPECIFIED: // required to cater for the older user configs(as they didn't | ||
| // have a rule type field) | ||
| return ExcludeSpanRuleRuleType.SYSTEM; |
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.
Shouldn't this be user?
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.
Right😅, updated it now.
Co-authored-by: aaron-steinfeld <[email protected]>
Description
This PR adds the rule type field for exclude span rules to distinguish between system exclude span rules and user exclude span rules. Depends on hypertrace/config-service#133.
Checklist: