fix(otlp-exporter-base): handle response error event #6412
Open
pichlermarc wants to merge 5 commits intoopen-telemetry:mainfrom
Open
fix(otlp-exporter-base): handle response error event #6412pichlermarc wants to merge 5 commits intoopen-telemetry:mainfrom
pichlermarc wants to merge 5 commits intoopen-telemetry:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6412 +/- ##
=======================================
Coverage 95.59% 95.59%
=======================================
Files 361 361
Lines 11595 11602 +7
Branches 2683 2686 +3
=======================================
+ Hits 11084 11091 +7
Misses 511 511
🚀 New features to boost your workflow:
|
…aders are received but socket is closed before request finishes
87232d1 to
13b3bc4
Compare
cjihrig
reviewed
Feb 16, 2026
experimental/packages/otlp-exporter-base/test/node/http-exporter-transport.test.ts
Outdated
Show resolved
Hide resolved
9947056 to
37968e5
Compare
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.
Which problem is this PR solving?
See #6410, the error event on the response is unhandled, it may be triggered in certain cases, like the author describes. This PR fixes this by adding a test + handling the response. In these cases we should already have the headers, so I added handling for sucess/failure/retry based on that, even if the response was not fully received (since the response is not necessary to ensure the OTLP export remains functional)
Fixes #6410
Type of change
How Has This Been Tested?