-
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
[configretry] max_elapsed_time cannot be set to 0
anymore because of new validation logic
#9641
Comments
0
anymore because of new validation logic0
anymore because of new validation logic
That behavior is not defined in the docs: https://github.com/open-telemetry/opentelemetry-collector/blame/main/exporter/exporterhelper/README.md#L15 It'd be good to fix the README as part of this fix. |
@rnishtala-sumo I am confused why the code you linked is the culprit. In your example config aren't |
@TylerHelmuth, all the other params are their default values. |
Below is the entire config, that worked in prior releases (< 0.95.0)
In
|
@rnishtala-sumo would you like to propose a patch? Should the issue be assigned to you? Please let us know. |
Yes, I can work on the issue and a patch for this would definitely help us upgrade to the next |
Raised the following PR for review |
**Description:** [configretry] Allow max_elapsed_time to be set to 0 **Link to tracking Issue:** #9641
@rnishtala-sumo in your filelog reciever config , you have specified start_at: end and you have given storage as well . Can you please elaborate me in detail . that if otel collector restarts from where it will start reading file again .
|
Describe the bug
According to this change in
v0.95.0
,max_elapsed_time
cannot be set to0
which was a previously allowed value to attempt retry indefinitely.Steps to reproduce
To prevent the sumologic exporter form ever dropping data that was successfully queued, set
retry_on_failure.max_elapsed_time
to0
.What did you expect to see?
setting
retry_on_failure.max_elapsed_time
to0
should be allowed to retry indefinitelyWhat did you see instead?
errors.New("'max_elapsed_time' must not be less than 'initial_interval'")
What version did you use?
v0.95.0
What config did you use?
The text was updated successfully, but these errors were encountered: