-
Notifications
You must be signed in to change notification settings - Fork 93
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
Rules Base Sampler #151
Rules Base Sampler #151
Conversation
sample/rules_test.go
Outdated
Rule: []*config.RulesBasedSamplerRule{ | ||
{ | ||
Name: "drop", | ||
SampleRate: 0, |
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.
In our other sampler configs we don't allow sample rate to be a value less than 1. We might want to make a note of this in rules.toml
and in our docs.
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 interesting! We could rethink this and have some other way of indicating that we should drop traffic?
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.
I could add a drop field. I'll see what that looks like
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.
it's in 4a6fc66
4a6fc66
to
a1835a7
Compare
Adds new sampler type, which implements some basic rules based sampling.