-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Fix otlphttpexporter parsing logic for Retry-After #12366
Conversation
0d21af7
to
b129cc6
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
b129cc6
to
c1f342a
Compare
09be25f
to
77bb67a
Compare
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
77bb67a
to
330bf11
Compare
if date, err := time.Parse(time.RFC1123, values[0]); err == nil { | ||
return exporterhelper.NewThrottleRetry(formattedErr, time.Until(date)) | ||
} | ||
return formattedErr |
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.
This line must be redundant then
Small improvement to not create a throttled error when delay is 0, same behavior.