Skip to content
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

Merged
merged 12 commits into from
Sep 24, 2020
Merged

Rules Base Sampler #151

merged 12 commits into from
Sep 24, 2020

Conversation

martin308
Copy link
Member

Adds new sampler type, which implements some basic rules based sampling.

@martin308 martin308 requested a review from a team September 22, 2020 23:23
Rule: []*config.RulesBasedSamplerRule{
{
Name: "drop",
SampleRate: 0,
Copy link
Contributor

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.

Copy link
Member Author

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?

Copy link
Member Author

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's in 4a6fc66

config/file_config.go Show resolved Hide resolved
sample/rules.go Outdated Show resolved Hide resolved
@martin308 martin308 force-pushed the martin308.rules-sampler branch from 4a6fc66 to a1835a7 Compare September 24, 2020 19:03
@martin308 martin308 merged commit 5965e70 into main Sep 24, 2020
@martin308 martin308 deleted the martin308.rules-sampler branch September 24, 2020 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants