Repository navigation
Accept legacy HTTP-date formats in OTLP Retry-After - #9074
Open
yangjj-iso wants to merge 1 commit into
Open
yangjj-iso wants to merge 1 commit into
yangjj-iso wants to merge 1 commit into
Conversation
|
|
Pull request dashboard statusWaiting on the author · refreshed 2026-11-27 09:01 UTC Wait for the required status checks to report; this pull request moves to reviewers once the results pass. Status above doesn't look right?
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9074 +/- ##
============================================
- Coverage 90.56% 90.56% -0.01%
- Complexity 11220 11225 +5
============================================
Files 1032 1032
Lines 30599 30626 +27
Branches 4010 4015 +5
============================================
+ Hits 27711 27735 +24
- Misses 1913 1914 +1
- Partials 975 977 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The shared OTLP/HTTP
Retry-Afterparser recognizes delay-seconds and the preferred HTTP date format. Valid RFC 850 and asctime dates currently fall through to exponential backoff. HTTP recipients are required to accept these legacy date formats. RFC 9110 §5.6.7Accept both formats in the shared parser so OkHttp and JDK senders can honor the delay supplied by the server. Resolve RFC 850 two-digit years using the 50-year rule and interpret asctime timestamps as UTC.
Follow-up to #8633.
Testing
:exporters:common:testpassed all 104 tests.:exporters:common:spotlessCheckpassed.RetryUtilTestcases pass with the change on JDK 17 and 25.JdkHttpSenderTestcases and the three OkHttpRetry-Aftercases passed. Two connection-timeout cases in the broader OkHttp run failed locally. Those cases supply their own delay extractor.Codex assisted with the implementation, regression tests, and local verification.