Skip to content

fix(iast): Exclude node:internals ALS from path line detection#7475

Merged
CarlesDD merged 1 commit intoBridgeAR/2026-02-09-reduce-acf-triggersfrom
ccapell/stacked-reduce-acf-triggers
Feb 10, 2026
Merged

fix(iast): Exclude node:internals ALS from path line detection#7475
CarlesDD merged 1 commit intoBridgeAR/2026-02-09-reduce-acf-triggersfrom
ccapell/stacked-reduce-acf-triggers

Conversation

@CarlesDD
Copy link
Copy Markdown
Contributor

What does this PR do?

Motivation

Additional Notes

@CarlesDD CarlesDD changed the base branch from master to BridgeAR/2026-02-09-reduce-acf-triggers February 10, 2026 16:00
@CarlesDD CarlesDD self-assigned this Feb 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Overall package size

Self size: 4.58 MB
Deduped: 5.42 MB
No deduping: 5.42 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

@datadog-official
Copy link
Copy Markdown

datadog-official Bot commented Feb 10, 2026

⚠️ Tests

Fix all issues with Cursor

⚠️ Warnings

❄️ 1 New flaky test detected

cypress@latest commonJS flaky test retries retries flaky tests in the correct order (right after original test) from integration-tests/cypress/cypress.spec.js (Datadog) (Fix with Cursor)
Expected values to be strictly equal:

18 !== 10

ℹ️ Info

🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: e475d02 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Feb 10, 2026

Benchmarks

Benchmark execution time: 2026-02-10 16:07:55

Comparing candidate commit e475d02 in PR branch ccapell/stacked-reduce-acf-triggers with baseline commit a6863ff in branch BridgeAR/2026-02-09-reduce-acf-triggers.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 233 metrics, 27 unstable metrics.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.31%. Comparing base (a6863ff) to head (e475d02).
⚠️ Report is 1 commits behind head on BridgeAR/2026-02-09-reduce-acf-triggers.

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     
Flag Coverage Δ
aiguard-macos 39.06% <ø> (ø)
aiguard-ubuntu 39.18% <ø> (ø)
aiguard-windows 38.92% <ø> (ø)
apm-capabilities-tracing-macos 48.81% <ø> (-0.04%) ⬇️
apm-capabilities-tracing-ubuntu 48.85% <ø> (-0.03%) ⬇️
apm-capabilities-tracing-windows 48.49% <ø> (+0.13%) ⬆️
apm-integrations-child-process 38.64% <ø> (ø)
apm-integrations-couchbase-18 37.39% <ø> (ø)
apm-integrations-couchbase-eol 38.03% <ø> (ø)
apm-integrations-oracledb 38.04% <ø> (-0.03%) ⬇️
appsec-express 55.45% <ø> (+0.03%) ⬆️
appsec-fastify 52.02% <ø> (-0.01%) ⬇️
appsec-graphql 52.40% <ø> (+0.03%) ⬆️
appsec-kafka 44.63% <ø> (ø)
appsec-ldapjs 44.38% <ø> (+0.02%) ⬆️
appsec-lodash 44.06% <ø> (+0.02%) ⬆️
appsec-macos 58.50% <ø> (+0.03%) ⬆️
appsec-mongodb-core 49.28% <ø> (+0.04%) ⬆️
appsec-mongoose 49.97% <ø> (+0.04%) ⬆️
appsec-mysql 51.35% <ø> (+0.04%) ⬆️
appsec-node-serialize 43.58% <ø> (+0.02%) ⬆️
appsec-passport 48.15% <ø> (-0.01%) ⬇️
appsec-postgres 51.14% <ø> (+0.04%) ⬆️
appsec-sourcing 42.92% <ø> (+0.02%) ⬆️
appsec-template 43.75% <ø> (+0.02%) ⬆️
appsec-ubuntu 58.59% <ø> (+0.03%) ⬆️
appsec-windows 58.37% <ø> (+0.03%) ⬆️
instrumentations-instrumentation-bluebird 32.32% <ø> (ø)
instrumentations-instrumentation-body-parser 40.85% <ø> (+0.05%) ⬆️
instrumentations-instrumentation-child_process 37.95% <ø> (ø)
instrumentations-instrumentation-cookie-parser 34.55% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-express 34.89% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-express-mongo-sanitize 34.68% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-express-session 40.47% <ø> (-0.01%) ⬇️
instrumentations-instrumentation-fs 31.92% <ø> (ø)
instrumentations-instrumentation-generic-pool 30.20% <ø> (+0.15%) ⬆️
instrumentations-instrumentation-http 39.66% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-knex 32.32% <ø> (ø)
instrumentations-instrumentation-mongoose 33.66% <ø> (-0.03%) ⬇️
instrumentations-instrumentation-multer 40.59% <ø> (+0.05%) ⬆️
instrumentations-instrumentation-mysql2 38.33% <ø> (ø)
instrumentations-instrumentation-passport 44.45% <ø> (+3.61%) ⬆️
instrumentations-instrumentation-passport-http 44.10% <ø> (+3.29%) ⬆️
instrumentations-instrumentation-passport-local 44.66% <ø> (+3.86%) ⬆️
instrumentations-instrumentation-pg 37.85% <ø> (ø)
instrumentations-instrumentation-promise 32.25% <ø> (ø)
instrumentations-instrumentation-promise-js 32.26% <ø> (ø)
instrumentations-instrumentation-q 32.30% <ø> (ø)
instrumentations-instrumentation-url 32.22% <ø> (ø)
instrumentations-instrumentation-when 32.27% <ø> (ø)
llmobs-ai 41.47% <ø> (ø)
llmobs-anthropic 40.66% <ø> (-0.03%) ⬇️
llmobs-bedrock 39.54% <ø> (-0.03%) ⬇️
llmobs-google-genai 40.15% <ø> (-0.03%) ⬇️
llmobs-langchain 39.69% <ø> (-0.03%) ⬇️
llmobs-openai 44.51% <ø> (-0.03%) ⬇️
llmobs-vertex-ai 40.44% <ø> (+0.04%) ⬆️
platform-core 29.71% <ø> (ø)
platform-esbuild 32.89% <ø> (ø)
platform-instrumentations-misc 40.53% <ø> (ø)
platform-shimmer 36.14% <ø> (ø)
platform-unit-guardrails 31.27% <ø> (ø)
plugins-azure-event-hubs 24.02% <ø> (ø)
plugins-azure-service-bus 23.42% <ø> (ø)
plugins-bullmq 43.70% <ø> (-0.08%) ⬇️
plugins-cassandra 38.08% <ø> (-0.03%) ⬇️
plugins-cookie 25.08% <ø> (ø)
plugins-cookie-parser 24.87% <ø> (ø)
plugins-crypto 24.72% <ø> (ø)
plugins-dd-trace-api 38.49% <ø> (ø)
plugins-express-mongo-sanitize 25.04% <ø> (ø)
plugins-express-session 24.83% <ø> (ø)
plugins-fastify 42.58% <ø> (-0.02%) ⬇️
plugins-fetch 38.64% <ø> (-0.03%) ⬇️
plugins-fs 38.74% <ø> (ø)
plugins-generic-pool 24.06% <ø> (ø)
plugins-google-cloud-pubsub 45.80% <ø> (+0.01%) ⬆️
plugins-grpc 41.33% <ø> (-0.03%) ⬇️
plugins-handlebars 25.08% <ø> (ø)
plugins-hapi 40.49% <ø> (-0.01%) ⬇️
plugins-hono 40.75% <ø> (+0.05%) ⬆️
plugins-ioredis 38.54% <ø> (ø)
plugins-knex 24.80% <ø> (ø)
plugins-ldapjs 22.61% <ø> (ø)
plugins-light-my-request 24.48% <ø> (ø)
plugins-limitd-client 32.62% <ø> (ø)
plugins-lodash 24.13% <ø> (ø)
plugins-mariadb 39.67% <ø> (ø)
plugins-memcached 38.27% <ø> (ø)
plugins-microgateway-core 39.50% <ø> (-0.01%) ⬇️
plugins-moleculer 40.88% <ø> (-0.03%) ⬇️
plugins-mongodb 39.59% <ø> (-0.03%) ⬇️
plugins-mongodb-core 39.19% <ø> (ø)
plugins-mongoose 39.22% <ø> (-0.03%) ⬇️
plugins-multer 24.83% <ø> (ø)
plugins-mysql 39.33% <ø> (ø)
plugins-mysql2 39.37% <ø> (ø)
plugins-node-serialize 25.12% <ø> (ø)
plugins-opensearch 37.91% <ø> (-0.03%) ⬇️
plugins-passport-http 24.91% <ø> (ø)
plugins-postgres 35.83% <ø> (+0.04%) ⬆️
plugins-process 24.72% <ø> (ø)
plugins-pug 25.08% <ø> (ø)
plugins-redis 39.02% <ø> (+0.01%) ⬆️
plugins-router 43.50% <ø> (+0.19%) ⬆️
plugins-sequelize 23.66% <ø> (ø)
plugins-test-and-upstream-amqp10 38.46% <ø> (ø)
plugins-test-and-upstream-amqplib 43.96% <ø> (-0.01%) ⬇️
plugins-test-and-upstream-apollo 39.33% <ø> (-0.06%) ⬇️
plugins-test-and-upstream-avsc 38.88% <ø> (ø)
plugins-test-and-upstream-bunyan 33.93% <ø> (ø)
plugins-test-and-upstream-connect 41.17% <ø> (+0.05%) ⬆️
plugins-test-and-upstream-graphql 40.29% <ø> (ø)
plugins-test-and-upstream-koa 40.75% <ø> (+0.13%) ⬆️
plugins-test-and-upstream-protobufjs 39.11% <ø> (ø)
plugins-test-and-upstream-rhea 44.25% <ø> (+0.02%) ⬆️
plugins-undici 39.43% <ø> (-0.03%) ⬇️
plugins-url 24.72% <ø> (ø)
plugins-valkey 38.19% <ø> (ø)
plugins-vm 24.72% <ø> (ø)
plugins-winston 34.31% <ø> (-0.03%) ⬇️
plugins-ws 42.24% <ø> (-0.03%) ⬇️
profiling-macos 40.04% <ø> (ø)
profiling-ubuntu 40.17% <ø> (ø)
profiling-windows 41.42% <ø> (ø)
serverless-azure-functions-client 23.75% <ø> (ø)
serverless-azure-functions-eventhubs 23.75% <ø> (ø)
serverless-azure-functions-servicebus 23.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@CarlesDD CarlesDD marked this pull request as ready for review February 10, 2026 16:50
@CarlesDD CarlesDD marked this pull request as ready for review February 10, 2026 16:50
@CarlesDD CarlesDD requested review from a team as code owners February 10, 2026 16:50
@CarlesDD CarlesDD merged commit b04c8bd into BridgeAR/2026-02-09-reduce-acf-triggers Feb 10, 2026
1197 of 1204 checks passed
@CarlesDD CarlesDD deleted the ccapell/stacked-reduce-acf-triggers branch February 10, 2026 16:53
BridgeAR added a commit that referenced this pull request Feb 10, 2026
* 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)
dd-octo-sts Bot pushed a commit that referenced this pull request Feb 10, 2026
* 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)
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Feb 10, 2026
juan-fernandez pushed a commit that referenced this pull request Feb 12, 2026
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants