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

Fix otlphttpexporter parsing logic for Retry-After #12366

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Feb 12, 2025

Small improvement to not create a throttled error when delay is 0, same behavior.

@bogdandrutu bogdandrutu requested a review from a team as a code owner February 12, 2025 05:08
@bogdandrutu bogdandrutu force-pushed the fix-otlp-http-exp branch 2 times, most recently from 0d21af7 to b129cc6 Compare February 12, 2025 05:17
Copy link

codecov bot commented Feb 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.49%. Comparing base (2493b6e) to head (330bf11).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12366      +/-   ##
==========================================
+ Coverage   91.42%   91.49%   +0.06%     
==========================================
  Files         467      466       -1     
  Lines       25609    25616       +7     
==========================================
+ Hits        23414    23438      +24     
+ Misses       1789     1774      -15     
+ Partials      406      404       -2     

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

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
if date, err := time.Parse(time.RFC1123, values[0]); err == nil {
return exporterhelper.NewThrottleRetry(formattedErr, time.Until(date))
}
return formattedErr
Copy link
Member

Choose a reason for hiding this comment

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

This line must be redundant then

@bogdandrutu bogdandrutu added this pull request to the merge queue Feb 12, 2025
Merged via the queue into open-telemetry:main with commit 3c6ce2b Feb 12, 2025
55 checks passed
@bogdandrutu bogdandrutu deleted the fix-otlp-http-exp branch February 12, 2025 23:00
@bogdandrutu bogdandrutu restored the fix-otlp-http-exp branch February 12, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants