-
Notifications
You must be signed in to change notification settings - Fork 9
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: allow enabling/disabling of samplers #63
Conversation
Adds configuration options that allow for enabling or disabling of samplers.
} else { | ||
Box::new(Snmp::new(config)) | ||
Box::new(Nop::new(config)) |
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.
Curious as to what the difference between Box::new(Nop {})
and this line is.
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.
No real difference, but I think standardizing on using the constructor instead of directly instantiating the struct is cleaner and makes it easier to make changes to the no-op sampler later if needed.
Adds configuration options that allow for enabling or disabling of samplers.