-
Notifications
You must be signed in to change notification settings - Fork 87
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(server): Add generic configuration for dynamic sampling rules #907
Conversation
a80ca14
to
845d705
Compare
845d705
to
e8537f9
Compare
Rules that can't be parsed (maybe because the Relay is old and new operators were introduced) are handled as follows: - processing Relays ignore rules that they cannot understand - non processing Relays disable rule sampling if they detect any rule that they don't understand
New rules are only project specific New rules can be build with Or,And,Not combinators
290265b
to
4036ac0
Compare
# Conflicts: # relay-server/src/actors/events.rs
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! The new rule configuration looks good and makes sense. In a follow up, we should investigate how to express inbound filters best with these rules.
A number of code and style changes below.
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.
LGTM, once conflicts are resolved.
This PR implements a generic format for rules and supports forward compatible enhancements
Also with the generic configuration we now support 3 types of rules: