fix(iast): Exclude node:internals ALS from path line detection#7475
Conversation
Overall package sizeSelf size: 4.58 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.6 | 81.92 kB | 813.08 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
|
BenchmarksBenchmark execution time: 2026-02-10 16:07:55 Comparing candidate commit e475d02 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 233 metrics, 27 unstable metrics. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## BridgeAR/2026-02-09-reduce-acf-triggers #7475 +/- ##
===========================================================================
- Coverage 80.35% 80.31% -0.04%
===========================================================================
Files 731 731
Lines 31089 31133 +44
===========================================================================
+ Hits 24981 25005 +24
- Misses 6108 6128 +20 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b04c8bd
into
BridgeAR/2026-02-09-reduce-acf-triggers
* fix: reduce ACF overhead in storage and noop contexts Replace manual enterWith/restore patterns with run() across all noop context wrappers (log writer, exporters, git utils). This halves AsyncContextFrame transitions on Node.js 22+: run() restores via AsyncContextFrame.set() (no extra frame), while enterWith/restore created a second frame that triggered the profiler's setContext() again. In DatadogStorage, feature-detect whether ALS.run() delegates to enterWith() (ACF behavior) and only fall back to the manual approach on older runtimes without AsyncContextFrame. * doc: remove todo by explaining the behavior * fix: exclude node:internals ALS from path line detection (#7475)
* fix: reduce ACF overhead in storage and noop contexts Replace manual enterWith/restore patterns with run() across all noop context wrappers (log writer, exporters, git utils). This halves AsyncContextFrame transitions on Node.js 22+: run() restores via AsyncContextFrame.set() (no extra frame), while enterWith/restore created a second frame that triggered the profiler's setContext() again. In DatadogStorage, feature-detect whether ALS.run() delegates to enterWith() (ACF behavior) and only fall back to the manual approach on older runtimes without AsyncContextFrame. * doc: remove todo by explaining the behavior * fix: exclude node:internals ALS from path line detection (#7475)
* fix: reduce ACF overhead in storage and noop contexts Replace manual enterWith/restore patterns with run() across all noop context wrappers (log writer, exporters, git utils). This halves AsyncContextFrame transitions on Node.js 22+: run() restores via AsyncContextFrame.set() (no extra frame), while enterWith/restore created a second frame that triggered the profiler's setContext() again. In DatadogStorage, feature-detect whether ALS.run() delegates to enterWith() (ACF behavior) and only fall back to the manual approach on older runtimes without AsyncContextFrame. * doc: remove todo by explaining the behavior * fix: exclude node:internals ALS from path line detection (#7475)
What does this PR do?
Motivation
Additional Notes