Repository navigation
Conversation
Overall package sizeSelf size: 9.56 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.5.3 | 131.25 kB | 531.9 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 6 Pipeline jobs failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed 🎯 Code Coverage (details) Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 5235a36 | Docs | View more details | Give us feedback! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11352 +/- ##
==========================================
- Coverage 89.61% 86.07% -3.54%
==========================================
Files 1128 1127 -1
Lines 184036 183966 -70
Branches 86 73 -13
==========================================
- Hits 164923 158348 -6575
- Misses 19113 25618 +6505
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
BenchmarksBenchmark execution time: 2026-11-23 19:21:01 Comparing candidate commit 5235a36 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 2476 metrics, 11 unstable metrics.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
One case to consider: if the app has a response cb but never reads the body, Node.js never emits end. With this change, the span (and the whole trace), only finishes when the remote closes de idle socket. Today the default's agent's 5s timeout caps it. (repro with this branch vs its base: against nginx with its default config, the span takes 65 s and the trace reaches the agent at 68 s (base: 5 s / 7 s); against a Go server with defaults, it never arrives) I know it's an app bug, but those traces, including Appsec events would arrive late or never. Is that an acceptable trade-off or worth keeping some bound? |
Node can emit a socket idle timeout without ending the request. Finishing the span then can lose the status, undercount the duration, or hide a later cancellation error. After a partial response, Node can report the interruption on the response stream instead of the request. Capture that error at finish without replacing a request error or ending response inspection early. Fixes: #11331
Node emits abort before it records the error for an interrupted HTTP request or response. Finishing a socket-backed request at abort can report the interrupted operation as successful. A request without a socket still needs to finish at abort because it can wait for a slot in the socket pool before it emits close. Refs: #11331
An unread outbound response can keep a client span open after the server request ends. Waiting for the full trace can keep a recorded AppSec finding buffered until that unrelated response closes.
d541ad9 to
5235a36
Compare
A socket idle timeout does not end a Node.js HTTP request. Finishing the span then can lose the status, undercount the duration, or hide a later cancellation error.
Finish the span on a terminal event and record the stream error if the response is interrupted. A request that succeeds after a configured timeout no longer counts as an error. Remove the AppSec close listener that compensated for the early finish.
Fixes #11331
This requires System Test fixes to land.