-
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 OTLP http receiver to correctly set Retry-After #12367
Fix OTLP http receiver to correctly set Retry-After #12367
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #12367 +/- ##
==========================================
+ Coverage 91.51% 91.54% +0.02%
==========================================
Files 467 467
Lines 25623 25623
==========================================
+ Hits 23450 23456 +6
+ Misses 1774 1768 -6
Partials 399 399 ☔ View full report in Codecov by Sentry. |
b2612a9
to
95cabe8
Compare
95cabe8
to
b3dd063
Compare
b3dd063
to
0b41fad
Compare
|
||
if !shouldRetry(st.Code(), retryInfo) { | ||
// It is not a retryable error, we should not retry. | ||
return consumererror.NewPermanent(err) | ||
} | ||
|
||
// Check if server returned throttling information. | ||
throttleDuration := getThrottleDuration(retryInfo) | ||
throttleDuration := retryInfo.GetRetryDelay().AsDuration() | ||
if throttleDuration != 0 { |
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.
Will fix in a followup to always include the throttle information if present and not retryable.
88074f9
to
bdc5222
Compare
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
bdc5222
to
dafd402
Compare
2dc95de
@bogdandrutu Since this PR creates a new module, can you file a follow up PR to do step 5 from this list:
Otherwise we cannot run |
Filed #12404 for ^ |
No description provided.