-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Freakynoblegas/reject invalid queue size exporterhelper #4799
Freakynoblegas/reject invalid queue size exporterhelper #4799
Conversation
if qCfg.QueueSize < 0 { | ||
return fmt.Errorf("queue size can't be negative") | ||
} | ||
|
||
if qCfg.Enabled && qCfg.QueueSize == 0 { | ||
return fmt.Errorf("a 0 size queue will drop all the data") | ||
} |
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 think if not enabled I think we should just return.
Co-authored-by: Pablo Baeyens <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #4799 +/- ##
==========================================
- Coverage 90.68% 90.68% -0.01%
==========================================
Files 179 179
Lines 10545 10577 +32
==========================================
+ Hits 9563 9592 +29
- Misses 763 765 +2
- Partials 219 220 +1
Continue to review full report at Codecov.
|
Please add a changelog entry. |
Description:
Link to tracking Issue: 4584
Testing:
Documentation: