Skip to content

v6.6.0 proposal - #9504

Merged
szegedi merged 4 commits into
v6.xfrom
v6.6.0-proposal
Jul 23, 2026
Merged

v6.6.0 proposal#9504
szegedi merged 4 commits into
v6.xfrom
v6.6.0-proposal

Conversation

@dd-octo-sts

@dd-octo-sts dd-octo-sts Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Features

  • Profiling: Pack column numbers for server-side unminification #9501

Fixes

  • Test Optimization: Complete test runs after subscriber loss #9381

Internal (CI, Testing, Benchmarking)

  • Dependencies: Bump pnpm #9498

dependabot Bot and others added 4 commits July 23, 2026 11:35
Bumps the test-versions group with 1 update in the /packages/dd-trace/test/plugins/versions directory: [pnpm](https://github.com/pnpm/pnpm/tree/HEAD/pnpm11/pnpm).


Updates `pnpm` from 11.15.0 to 11.15.1
- [Release notes](https://github.com/pnpm/pnpm/releases)
- [Commits](https://github.com/pnpm/pnpm/commits/v11.15.1/pnpm11/pnpm)

---
updated-dependencies:
- dependency-name: pnpm
  dependency-version: 11.15.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: test-versions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(test-optimization): complete test runs after subscriber loss

Finish subscribers can disable themselves while handling a diagnostic-channel publication, leaving no callback owner and hanging the framework run indefinitely. Treat losing the last subscriber as completion while preserving exporter-backed waits and Jest's timeout.

* test(test-optimization): cover vitest suite finish and cucumber config-loss

The vitest worker suite-finish path (the one that awaits the flush through the
shared channel helper) had no dedicated instrumentation spec and no CI job, so
its subscriber-loss behavior rode only on end-to-end coverage. Add a real-path
spec driving the `@vitest/runner` `startTests` hook, plus `instrumentation-vitest`
and `instrumentation-cucumber` jobs alongside the other frameworks.

The cucumber spec now pins the `|| {}` guard in getWrappedStart: a
library-configuration subscriber that disables itself without responding resolves
the request to `undefined`, and the run must still finish with every remote
feature treated as disabled.

Drive-by fix:

* Drop `frameworkVersion` from the vitest worker `testSuiteFinishCh` payload; the
  suite-finish subscriber never reads it and it is already carried in currentStore.

* fix(test-optimization): finish runs after plugin lifecycle errors

Mocha configuration requests publish through runStores, so an internal handler error can disable the plugin and leave delayed startup waiting forever. Re-enabling Playwright after test start can leave an active finish subscriber without a span, whose early return similarly never releases the worker.
…9501)

* feat(profiling): pack column numbers for server-side unminification

Updates profiler to 5.17.0, and then sets columnNumbers: 'pack' on the wall profiler and pass 'pack' to the space profiler's heap.profile call. pprof 5.17.0 packs the column into the line only for frames whose source map is declared but missing (dd:has-missing-map-files) — exactly the frames sent for server-side unminification — so this lets the
backend deobfuscate minified Node.js (e.g. Next.js server) frames, where the column is the only discriminator between functions on a single generated line.
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Jul 23, 2026
@dd-octo-sts

dd-octo-sts Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Overall package size

Self size: 7.48 MB
Deduped: 8.14 MB
No deduping: 8.14 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.2 | 124.41 kB | 440.65 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

@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Jul 23, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 99.54%
Overall Coverage: 98.43%

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 808d7cb | Docs | Datadog PR Page | Give us feedback!

@pr-commenter

pr-commenter Bot commented Jul 23, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-23 11:51:02

Comparing candidate commit 808d7cb in PR branch v6.6.0-proposal with baseline commit 3b026a5 in branch v6.x.

📊 Benchmarking dashboard

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

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

Unstable benchmarks

These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.

scenario:appsec-appsec-enabled-24

  • unstable execution_time [-167.286ms; +231.761ms] or [-6.395%; +8.860%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-227.008ms; +169.943ms] or [-8.987%; +6.728%]

scenario:appsec-appsec-enabled-with-attacks-24

  • unstable execution_time [-162.340ms; +166.415ms] or [-5.269%; +5.401%]

scenario:appsec-appsec-enabled-with-attacks-26

  • unstable execution_time [-191.788ms; +189.673ms] or [-6.601%; +6.528%]

scenario:appsec-control-20

  • unstable execution_time [-117.270ms; +127.588ms] or [-7.136%; +7.764%]

scenario:appsec-control-24

  • unstable execution_time [-115830.672µs; +114156.938µs] or [-9.320%; +9.185%]

scenario:appsec-control-26

  • unstable execution_time [-120.973ms; +116.060ms] or [-9.758%; +9.362%]

scenario:appsec-iast-no-vulnerability-iast-enabled-always-active-20

  • unstable execution_time [-14585.016µs; +15874.721µs] or [-5.710%; +6.215%]

scenario:appsec-iast-no-vulnerability-iast-enabled-default-config-20

  • unstable execution_time [-10.564ms; +16.339ms] or [-4.092%; +6.329%]

scenario:appsec-iast-with-vulnerability-control-20

  • unstable execution_time [-31443.060µs; +31738.260µs] or [-5.744%; +5.797%]

scenario:child_process-file-args-24

  • unstable execution_time [-22.859ms; +33.843ms] or [-4.797%; +7.102%]
  • unstable throughput [-135570.454op/s; +93714.717op/s] or [-6.188%; +4.278%]

scenario:debugger-line-probe-with-snapshot-default-24

  • unstable cpu_user_time [-1771.925ms; +564.710ms] or [-21.331%; +6.798%]
  • unstable execution_time [-1789.980ms; +563.189ms] or [-19.873%; +6.253%]
  • unstable instructions [-15.0G instructions; +4.8G instructions] or [-22.186%; +7.167%]
  • unstable throughput [-148.197op/s; +477.391op/s] or [-4.051%; +13.050%]

scenario:debugger-line-probe-with-snapshot-default-26

  • unstable cpu_user_time [-2380.311ms; +4250.483ms] or [-24.498%; +43.745%]
  • unstable execution_time [-2381.028ms; +4269.858ms] or [-22.780%; +40.851%]
  • unstable instructions [-21.2G instructions; +37.9G instructions] or [-26.163%; +46.802%]
  • unstable max_rss_usage [-8.450MB; +13.957MB] or [-5.306%; +8.763%]
  • unstable throughput [-870.595op/s; +471.212op/s] or [-27.414%; +14.838%]

scenario:debugger-line-probe-with-snapshot-minimal-24

  • unstable cpu_user_time [-1759.413ms; +590.356ms] or [-21.197%; +7.113%]
  • unstable execution_time [-1821.444ms; +632.132ms] or [-20.233%; +7.022%]
  • unstable instructions [-15.0G instructions; +4.9G instructions] or [-22.129%; +7.191%]
  • unstable throughput [-173.980op/s; +474.998op/s] or [-4.745%; +12.955%]

scenario:debugger-line-probe-without-snapshot-24

  • unstable cpu_user_time [-1690.752ms; +618.739ms] or [-20.244%; +7.408%]
  • unstable execution_time [-1706.045ms; +638.211ms] or [-18.873%; +7.060%]
  • unstable instructions [-14.6G instructions; +5.4G instructions] or [-21.464%; +7.892%]
  • unstable throughput [-186.632op/s; +449.747op/s] or [-5.124%; +12.347%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-232.584ms; +410.425ms] or [-4.712%; +8.315%]
  • unstable execution_time [-235.324ms; +414.562ms] or [-4.700%; +8.280%]
  • unstable throughput [-140763.979op/s; +89651.364op/s] or [-8.426%; +5.366%]

scenario:fs-subscribed-24

  • unstable execution_time [-17.412ms; +28.901ms] or [-4.319%; +7.169%]

scenario:plugin-claude-agent-sdk-compact-stream-scan-24

  • unstable cpu_usage_percentage [-8.372%; +1.803%]

scenario:plugin-graphql-long-with-depth-and-collapse-off-20

  • unstable max_rss_usage [-34486.725KB; +33815.925KB] or [-8.533%; +8.367%]

scenario:plugin-graphql-long-with-depth-off-20

  • unstable max_rss_usage [-6978.592KB; +7876.878KB] or [-5.417%; +6.114%]

scenario:plugin-graphql-long-with-depth-off-26

  • unstable max_rss_usage [-39.387MB; +17.500MB] or [-18.054%; +8.022%]

scenario:plugin-pg-service-26

  • unstable execution_time [-95.340ms; +34.641ms] or [-10.462%; +3.801%]

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.54545% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (v6.x@3b026a5). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...ackages/datadog-instrumentations/src/mocha/main.js 98.73% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             v6.x    #9504   +/-   ##
=======================================
  Coverage        ?   98.43%           
=======================================
  Files           ?      941           
  Lines           ?   126966           
  Branches        ?    10806           
=======================================
  Hits            ?   124983           
  Misses          ?     1983           
  Partials        ?        0           
Flag Coverage Δ
aiguard 57.50% <ø> (?)
aiguard-integration 56.33% <ø> (?)
apm-bucket-0 58.71% <ø> (?)
apm-bucket-1 64.04% <ø> (?)
apm-bucket-2 62.81% <ø> (?)
apm-bucket-3 60.17% <ø> (?)
apm-capabilities-tracing 64.61% <83.33%> (?)
apm-integrations-aerospike 56.75% <ø> (?)
apm-integrations-confluentinc-kafka-javascript 61.65% <ø> (?)
apm-integrations-couchbase 57.19% <ø> (?)
apm-integrations-http 62.82% <ø> (?)
apm-integrations-kafkajs 62.24% <ø> (?)
apm-integrations-next 59.29% <ø> (?)
apm-integrations-prisma 58.76% <ø> (?)
appsec 72.97% <ø> (?)
appsec-express_fastify_graphql 70.44% <ø> (?)
appsec-integration 51.51% <36.50%> (?)
appsec-kafka_ldapjs_lodash 64.02% <ø> (?)
appsec-mongodb-core_mongoose_mysql 67.74% <ø> (?)
appsec-next 57.61% <59.78%> (?)
appsec-node-serialize_passport_postgres 67.41% <ø> (?)
appsec-sourcing_stripe_template 65.76% <ø> (?)
debugger 64.94% <ø> (?)
instrumentations-bucket-0 51.84% <ø> (?)
instrumentations-bucket-1 60.34% <ø> (?)
instrumentations-bucket-10 62.14% <ø> (?)
instrumentations-bucket-11 51.75% <ø> (?)
instrumentations-bucket-12 52.32% <ø> (?)
instrumentations-bucket-13 51.86% <ø> (?)
instrumentations-bucket-2 53.75% <ø> (?)
instrumentations-bucket-3 59.34% <ø> (?)
instrumentations-bucket-4 52.41% <ø> (?)
instrumentations-bucket-5 57.65% <38.56%> (?)
instrumentations-bucket-6 60.86% <ø> (?)
instrumentations-bucket-7 58.53% <ø> (?)
instrumentations-bucket-8 59.67% <ø> (?)
instrumentations-bucket-9 61.66% <ø> (?)
instrumentations-instrumentation-couchbase 51.15% <ø> (?)
instrumentations-integration-esbuild 34.25% <36.50%> (?)
llmobs-ai_anthropic_bedrock 62.85% <ø> (?)
llmobs-bucket-1 61.66% <ø> (?)
llmobs-openai 62.79% <ø> (?)
llmobs-sdk 66.25% <ø> (?)
llmobs-vertex-ai 59.30% <ø> (?)
openfeature 56.21% <ø> (?)
openfeature-unit 53.51% <ø> (?)
platform-core_esbuild_instrumentations-misc 40.62% <51.50%> (?)
platform-integration 61.52% <ø> (?)
platform-shimmer_unit-guardrails_webpack 39.11% <36.50%> (?)
plugins-bucket-0 57.15% <ø> (?)
plugins-bucket-1 54.49% <ø> (?)
plugins-bucket-11 62.38% <ø> (?)
plugins-bucket-18 62.07% <ø> (?)
plugins-bucket-19 60.17% <ø> (?)
plugins-bucket-20 62.17% <ø> (?)
plugins-bucket-4 58.69% <ø> (?)
plugins-bullmq_cassandra_cookie 61.86% <ø> (?)
plugins-cookie-parser_crypto_dd-trace-api 56.85% <ø> (?)
plugins-fetch_fs_generic-pool 58.93% <ø> (?)
plugins-google-cloud-pubsub_grpc_handlebars 64.80% <ø> (?)
plugins-hapi_hono_ioredis 60.34% <ø> (?)
plugins-jest_knex_langgraph 55.71% <ø> (?)
plugins-ldapjs_light-my-request_limitd-client 58.62% <ø> (?)
plugins-lodash_mariadb_memcached 58.12% <ø> (?)
plugins-moleculer_mongodb_mongodb-core 62.03% <ø> (?)
plugins-mongoose_multer_mysql 59.13% <ø> (?)
plugins-mysql2_nats_node-serialize 60.83% <ø> (?)
plugins-opensearch_passport-http_pino 59.66% <ø> (?)
plugins-postgres_process_pug 58.39% <ø> (?)
plugins-redis_router_sequelize 62.16% <ø> (?)
plugins-test-and-upstream-rhea_undici_url 61.74% <ø> (?)
plugins-valkey_vm_winston 58.13% <ø> (?)
plugins-ws 59.72% <ø> (?)
profiling 62.25% <100.00%> (?)
serverless-aws-sdk-aws-sdk 55.15% <38.56%> (?)
serverless-aws-sdk-bedrockruntime 54.86% <ø> (?)
serverless-aws-sdk-client 56.54% <ø> (?)
serverless-aws-sdk-dynamodb 55.77% <ø> (?)
serverless-aws-sdk-eventbridge 49.48% <38.56%> (?)
serverless-aws-sdk-kinesis 59.45% <ø> (?)
serverless-aws-sdk-lambda 57.50% <ø> (?)
serverless-aws-sdk-s3 55.71% <ø> (?)
serverless-aws-sdk-serverless-peer-service 59.85% <ø> (?)
serverless-aws-sdk-sns 60.24% <ø> (?)
serverless-aws-sdk-sqs 60.68% <ø> (?)
serverless-aws-sdk-stepfunctions 55.69% <ø> (?)
serverless-aws-sdk-util 51.59% <ø> (?)
serverless-bucket-0 54.35% <ø> (?)
serverless-bucket-1 59.37% <ø> (?)
test-optimization-cucumber 72.05% <92.26%> (?)
test-optimization-cypress 65.89% <88.38%> (?)
test-optimization-jest 73.32% <92.48%> (?)
test-optimization-mocha 73.57% <96.12%> (?)
test-optimization-playwright-playwright-atr 60.48% <90.12%> (?)
test-optimization-playwright-playwright-efd 60.67% <90.12%> (?)
test-optimization-playwright-playwright-final-status 60.64% <90.12%> (?)
test-optimization-playwright-playwright-impacted-tests 60.37% <90.12%> (?)
test-optimization-playwright-playwright-reporting 61.66% <91.97%> (?)
test-optimization-playwright-playwright-test-management 61.18% <90.12%> (?)
test-optimization-playwright-playwright-test-span 60.53% <90.12%> (?)
test-optimization-selenium 60.14% <92.47%> (?)
test-optimization-testopt 58.60% <80.27%> (?)
test-optimization-vitest 70.36% <92.77%> (?)

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

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

@szegedi
szegedi marked this pull request as ready for review July 23, 2026 12:07
@szegedi
szegedi requested review from a team as code owners July 23, 2026 12:07
@szegedi
szegedi requested review from tlhunter and removed request for a team July 23, 2026 12:07
@szegedi
szegedi merged commit 263c930 into v6.x Jul 23, 2026
808 checks passed
@szegedi
szegedi deleted the v6.6.0-proposal branch July 23, 2026 12:16
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.

3 participants