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

(exporterhelper) Retry sender: fail request if context timeout < next retry #11331

Merged

Conversation

jmacd
Copy link
Contributor

@jmacd jmacd commented Oct 1, 2024

Description

The retry sender will delay until the context is canceled, where instead it could fail fast with a transient error and a clear message that no more retries are possible given the configuration.

Link to tracking issue

Part of #11183

Testing

One new test.

@jmacd jmacd marked this pull request as ready for review October 1, 2024 23:07
@jmacd jmacd requested a review from a team as a code owner October 1, 2024 23:07
@jmacd jmacd requested a review from evan-bradley October 1, 2024 23:07
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.51%. Comparing base (a24f914) to head (29012ab).
Report is 18 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11331   +/-   ##
=======================================
  Coverage   91.50%   91.51%           
=======================================
  Files         430      430           
  Lines       20209    20228   +19     
=======================================
+ Hits        18493    18511   +18     
- Misses       1341     1342    +1     
  Partials      375      375           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jmacd jmacd marked this pull request as draft October 2, 2024 14:57
@jmacd jmacd marked this pull request as ready for review October 2, 2024 18:21
@bogdandrutu bogdandrutu merged commit b40e74f into open-telemetry:main Oct 5, 2024
66 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 5, 2024
jackgopack4 pushed a commit to jackgopack4/opentelemetry-collector that referenced this pull request Oct 8, 2024
… retry (open-telemetry#11331)

#### Description
The retry sender will delay until the context is canceled, where instead
it could fail fast with a transient error and a clear message that no
more retries are possible given the configuration.

#### Link to tracking issue
Part of open-telemetry#11183 

#### Testing
One new test.
HongChenTW pushed a commit to HongChenTW/opentelemetry-collector that referenced this pull request Dec 19, 2024
… retry (open-telemetry#11331)

#### Description
The retry sender will delay until the context is canceled, where instead
it could fail fast with a transient error and a clear message that no
more retries are possible given the configuration.

#### Link to tracking issue
Part of open-telemetry#11183 

#### Testing
One new test.
@newly12
Copy link
Contributor

newly12 commented Dec 26, 2024

I think apart from comparing deadline from context with backoff delay, we should also compare max elapsed time with it? and one problem with context deadline is that it is not set properly in the collector, f.e. timeout sender is the next sender of retry sender, but it sets its own context with deadline, not the same context retry sending uses.

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.

3 participants