Skip to content

Respect Retry-After in OTLP HTTP senders#8633

Open
ADITYA-CODE-SOURCE wants to merge 1 commit into
open-telemetry:mainfrom
ADITYA-CODE-SOURCE:issue-8449-otlp-retry-after
Open

Respect Retry-After in OTLP HTTP senders#8633
ADITYA-CODE-SOURCE wants to merge 1 commit into
open-telemetry:mainfrom
ADITYA-CODE-SOURCE:issue-8449-otlp-retry-after

Conversation

@ADITYA-CODE-SOURCE

Copy link
Copy Markdown
Contributor

Summary:

  • honor OTLP/HTTP Retry-After headers in the OkHttp and JDK HTTP senders
  • support both delay-seconds and RFC1123 HTTP-date values, with existing exponential backoff as the fallback
  • add shared parser coverage plus sender and OTLP integration tests for seconds/date/malformed cases

Fixes #8449

Testing:

  • ./gradlew :exporters:common:test --tests "*RetryUtilTest"
  • ./gradlew :exporters:sender:okhttp:test --tests "*RetryInterceptorTest"
  • ./gradlew :exporters:sender:jdk:test --tests "*JdkHttpSenderTest"
  • ./gradlew :exporters:otlp:all:testOkHttpVersionLATEST --tests "OtlpHttp"
  • ./gradlew :exporters:otlp:all:testJdkHttpSender --tests "OtlpHttp"
  • ./gradlew :exporters:common:spotlessCheck :exporters:sender:okhttp:spotlessCheck :exporters:sender:jdk:spotlessCheck :exporters:otlp:testing-internal:spotlessCheck :exporters:otlp:all:spotlessCheck :exporters:otlp:all:checkstyleTestOkHttpVersionLATEST :exporters:otlp:all:checkstyleTestJdkHttpSender

@ADITYA-CODE-SOURCE
ADITYA-CODE-SOURCE requested a review from a team as a code owner July 17, 2026 04:21
@linux-foundation-easycla

Copy link
Copy Markdown

CLA Missing ID

  • ❌ The email address for the commit (1249450) is not linked to the GitHub account, preventing the EasyCLA check. Consult this Help Article and GitHub Help to resolve. (To view the commit's email address, add .patch at the end of this PR page's URL.) For further assistance with EasyCLA, please visit our EasyCLA portal and chat with our support bot.

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.82759% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.61%. Comparing base (b86f040) to head (1249450).

Files with missing lines Patch % Lines
.../io/opentelemetry/exporter/internal/RetryUtil.java 86.66% 1 Missing and 1 partial ⚠️
...orter/sender/okhttp/internal/RetryInterceptor.java 93.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8633   +/-   ##
=========================================
  Coverage     91.60%   91.61%           
- Complexity    10343    10360   +17     
=========================================
  Files          1013     1013           
  Lines         27352    27396   +44     
  Branches       3215     3219    +4     
=========================================
+ Hits          25057    25098   +41     
- Misses         1567     1568    +1     
- Partials        728      730    +2     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

OTLP exporters should respect retry-after

1 participant