Skip to content

v5.99.0 proposal#8077

Draft
dd-octo-sts[bot] wants to merge 40 commits intov5.xfrom
v5.99.0-proposal
Draft

v5.99.0 proposal#8077
dd-octo-sts[bot] wants to merge 40 commits intov5.xfrom
v5.99.0-proposal

Conversation

@dd-octo-sts
Copy link
Copy Markdown
Contributor

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

  • [603307bc7f] - (SEMVER-PATCH) test,ci: fix langchain being tested against Node.js 18 (Ruben Bridgewater) #8103
  • [c0ae7192f5] - (SEMVER-PATCH) chore: replace getValueFromEnvSources calls with config usage (Ruben Bridgewater) #8084
  • [77c7719c2b] - (SEMVER-PATCH) chore: generate more narrow config types (Ruben Bridgewater) #8081
  • [a156a785b4] - (SEMVER-PATCH) fix: handle esm and cjs in rewriter (Ruben Bridgewater) #8000
  • [5435c2b9a6] - (SEMVER-PATCH) refactor(opentelemetry): simplify OTLP traces setup per PR feat: support for OTLP trace export (http/json) #7531 review (Ruben Bridgewater) #8074
  • [fb34ecca9b] - (SEMVER-PATCH) test(otel): make tests robust against event emitter leak warnings (Ruben Bridgewater) #8075
  • [45e61496c9] - (SEMVER-PATCH) move instrumentation to their own workflow (Roch Devost) #8039
  • [0b022f346c] - (SEMVER-MINOR) feat(test-optimization): create final_status tag on test event for vitest (Sebastián Kay) #8064
  • [ab1f2a81ec] - (SEMVER-PATCH) chore(ci) : fix concurrency clause on master (Charles de Beauchesne) #8080
  • [9ef3cb5605] - (SEMVER-PATCH) ci: pin datadog-ci for junit upload (Juan Antonio Fernández de Alba) #8078
  • [5452091522] - (SEMVER-PATCH) [test optimization] fix cypress TS config auto-instrumentation and OTLP override (Juan Antonio Fernández de Alba) #8073
  • [ab1659c909] - (SEMVER-PATCH) ci: remove release status job (Roch Devost) #8070
  • [8cd7c2672e] - (SEMVER-PATCH) chore(deps): bump axios (dependabot[bot]) #8076
  • [073fbd98fd] - (SEMVER-PATCH) fix(ws): add missing ctx.span guard in bindAsyncStart and asyncStart (nikhil tallapureddy) #8002
  • [c9fcca945b] - (SEMVER-PATCH) test: use parallel steps while in sandbox creation for performance (Ruben Bridgewater) #8028
  • [f408684039] - (SEMVER-PATCH) fix(otel): correct sampling priority and origin propagation from trac… (Ruben Bridgewater) #8031
  • [9f10b0e7ff] - (SEMVER-PATCH) chore(project): upgrade typescript for docs (Sam Brenner) #8065
  • [237b091004] - (SEMVER-PATCH) fix(opentelemetry): implement setUrl on OTLP HTTP exporter base (Crystal Luc-Magloire) #8063
  • [4882a30f74] - (SEMVER-MINOR) feat(ai-guard): add ai_guard.event tag to the root span (Manuel Álvarez Álvarez) #7998
  • [f020db65c9] - (SEMVER-PATCH) test(light-my-request): run suite under withVersions (Ruben Bridgewater) #8052
  • [1efc8186ff] - (SEMVER-PATCH) chore(deps-dev): bump the dev-minor-and-patch-dependencies group across 2 directories with 7 updates (dependabot[bot]) #8066
  • [612d25e209] - (SEMVER-PATCH) chore(project): update sinon (Sam Brenner) #8062
  • [404f17549c] - (SEMVER-PATCH) test(openfeature): match printf-style log.debug args (Ruben Bridgewater) #8059
  • [2958b11023] - (SEMVER-MINOR) feat(llmobs): add support for Model Context Protocol SDK (Crystal Luc-Magloire) #7845
  • [1241a6187e] - (SEMVER-PATCH) ci: update flakiness report with a shorter summary (Roch Devost) #8038
  • [220434b97e] - (SEMVER-PATCH) test(debugger): merge caller snapshotConfig with defaults (Ruben Bridgewater) #8056
  • [71719a0ce1] - (SEMVER-PATCH) test(debugger): ignore transitional UNACKNOWLEDGED state (Ruben Bridgewater) #8057
  • [237e32cf86] - (SEMVER-PATCH) test(profiling): replace RegExp.escape with includes check (Ruben Bridgewater) #8058
  • [182cbdb974] - (SEMVER-PATCH) refactor(playwright): extract browser-side evaluate callbacks (Ruben Bridgewater) #8060
  • [734ceffeb1] - (SEMVER-PATCH) test(debugger): assert newly-exposed inputPath key (Ruben Bridgewater) #8055
  • [ee37f93b3a] - (SEMVER-PATCH) fix: stop reading deprecated req.connection.encrypted (Ruben Bridgewater) #8051
  • [3c6b53a878] - (SEMVER-PATCH) fix: support lazy startup log messages (Ruben Bridgewater) #8054
  • [0b7ef4161e] - (SEMVER-PATCH) chore(ci) update one-pipeline (gh-worker-campaigns-3e9aa4[bot]) #8043
  • [b2e23abbc3] - (SEMVER-PATCH) chore(deps): bump oxc-parser from 0.121.0 to 0.126.0 in the runtime-minor-and-patch-dependencies group across 1 directory (dependabot[bot]) #8047
  • [97ef341395] - (SEMVER-PATCH) chore(deps): bump the gh-actions-packages group across 5 directories with 2 updates (dependabot[bot]) #8049
  • [aff047fecd] - (SEMVER-PATCH) Rewriter compiler comment (Roch Devost) #8033
  • [89cd561765] - (SEMVER-PATCH) dont run serverless ci on release branch pushes too (Olivier Nzia) #8035
  • [1c136d23eb] - (SEMVER-PATCH) set network and http client ip on ai guard (Ilyas Shabi) #8034
  • [8539f8800f] - (SEMVER-PATCH) Skip mquery plugin flaky test (Carles Capell) #8040

CarlesDD and others added 27 commits April 23, 2026 05:48
* set network and http client ip on ai guard
* dont run serverless ci on release branch pushes too

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* add comment to clarify the purpose of the compiler file

* remove old and no longer relevant comment
…with 2 updates (#8049)

Bumps the gh-actions-packages group with 2 updates in the / directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/cache](https://github.com/actions/cache).
Bumps the gh-actions-packages group with 1 update in the /.github/actions/install directory: [actions/cache](https://github.com/actions/cache).
Bumps the gh-actions-packages group with 1 update in the /.github/actions/node directory: [actions/cache](https://github.com/actions/cache).
Bumps the gh-actions-packages group with 1 update in the /.github/actions/install/branch-diff directory: [actions/cache](https://github.com/actions/cache).
Bumps the gh-actions-packages group with 2 updates in the /.github/workflows directory: [github/codeql-action](https://github.com/github/codeql-action) and [actions/cache](https://github.com/actions/cache).


Updates `github/codeql-action` from 4.35.1 to 4.35.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@c10b806...95e58e9)

Updates `actions/cache` from 5.0.4 to 5.0.5
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@6682284...27d5ce7)

Updates `actions/cache` from 5.0.4 to 5.0.5
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@6682284...27d5ce7)

Updates `actions/cache` from 5.0.4 to 5.0.5
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@6682284...27d5ce7)

Updates `actions/cache` from 5.0.4 to 5.0.5
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@6682284...27d5ce7)

Updates `github/codeql-action` from 4.35.1 to 4.35.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@c10b806...95e58e9)

Updates `actions/cache` from 5.0.4 to 5.0.5
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@6682284...27d5ce7)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: actions/cache
  dependency-version: 5.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: actions/cache
  dependency-version: 5.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: actions/cache
  dependency-version: 5.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: actions/cache
  dependency-version: 5.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: github/codeql-action
  dependency-version: 4.35.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: actions/cache
  dependency-version: 5.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…inor-and-patch-dependencies group across 1 directory (#8047)

Bumps the runtime-minor-and-patch-dependencies group with 1 update in the / directory: [oxc-parser](https://github.com/oxc-project/oxc/tree/HEAD/napi/parser).


Updates `oxc-parser` from 0.121.0 to 0.126.0
- [Release notes](https://github.com/oxc-project/oxc/releases)
- [Changelog](https://github.com/oxc-project/oxc/blob/main/napi/parser/CHANGELOG.md)
- [Commits](https://github.com/oxc-project/oxc/commits/crates_v0.126.0/napi/parser)

---
updated-dependencies:
- dependency-name: oxc-parser
  dependency-version: 0.126.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: runtime-minor-and-patch-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: gh-worker-campaigns-3e9aa4[bot] <244854796+gh-worker-campaigns-3e9aa4[bot]@users.noreply.github.com>
`flushStartupLogs` is called both with the main `./log` module (which
natively supports deferred/lazy message formatting via function
arguments) and with the simpler `./log/writer` pass-through (which does
not). Callers that push a closure onto the warnings queue — as recommended
by the log module's docs for expensive formatting — ended up being
stringified to `[object Function]` when the writer was used.

Invoke the closure at the call site so both log surfaces behave
consistently. This is a minimal, self-contained fix with no change to the
public API: callers that pass a string still work exactly as before.
`IncomingMessage.connection` is a deprecated alias for `.socket` (DEP0163
in Node.js since v13). Every access emits a deprecation warning, including
from light-my-request's request mock, which makes the deprecation pipe
through to downstream consumers of dd-trace.

On real `http` / `http2` request objects `req.socket` and `req.connection`
point to the exact same object reference, so dropping the second check is
observationally equivalent — there is no combination of real request
plumbing where `socket.encrypted` is falsy while `connection.encrypted` is
truthy. A unit test that was previously asserting the legacy alias is
updated to document the new behavior and act as a regression guard so
nobody reintroduces the deprecated read.

Refs: https://nodejs.org/docs/latest-v18.x/api/http.html#messageconnection
The debugger's `getDebuggerConfig` helper now forwards the tracer's
`inputPath` alongside the existing fields. The test that pins the
exact set of keys was still enumerating the old list and would start
failing as soon as anyone touched the config snapshot, despite the new
key being fully intentional.

Add `inputPath` to the asserted set so this test tracks reality.
Pure catch-up — no behavior change.
Playwright's `page.evaluate(fn)` stringifies the callback with
`fn.toString()` and ships the source into the chromium worker, where it
runs with no access to the Node.js module graph. That is normally
fine, but it breaks the moment the calling file is instrumented by
NYC: the serialized body references NYC's counter globals
(`cov_xxxx.f[0]++`, etc.) which do not exist in the browser, so the
evaluate fails at runtime with `ReferenceError: cov_xxxx is not
defined`. The symptom is silent because Playwright surfaces the browser
error asynchronously — tests just start flapping.

Three coordinated pieces close the foot-gun for the whole codebase:

1. `packages/datadog-instrumentations/src/playwright-browser-scripts.js`
   is a new file that holds the two inline callbacks (`detectRum` and
   `stopRumSession`) that used to live in `playwright.js`. The file is
   required by the instrumentation and the two function values are
   passed through to `page.evaluate(...)` instead of anonymous arrows.

2. `nyc.config.js` adds `**/*-browser-scripts.js` to the exclusion
   list, so NYC never instruments these files. Renaming the file
   pattern requires updating both this glob and the eslint rule
   below — the in-source comment calls that out.

3. `eslint.config.mjs` adds a targeted `no-restricted-syntax` rule that
   errors when any `.evaluate(<inline function>)` call appears anywhere
   in the repo, pointing the author at the `*-browser-scripts.js`
   convention. Without the lint rule this class of bug would creep
   right back in the next time someone inlines a callback for
   convenience.

Behavioral parity with the old code is intentional — both helpers
return the exact same shapes they did when they were inline. Only the
call sites change.
`RegExp.escape` is a very recent TC39 addition (stage-4 in 2024) and
is not available on Node.js 18, which this repo still supports. The
existing `assert.match(..., new RegExp(RegExp.escape(warning)))`
would crash with a `TypeError: RegExp.escape is not a function` on
the oldest supported runtime.

Since the assertion only needed to confirm the joined warnings include
a literal substring, swap it for `assert.ok(joined.includes(warning))`
with a descriptive failure message. No pattern matching required, no
polyfill added, and the test now works on every supported Node.js
version.
The `Dynamic Instrumentation` suite listens for remote-config ack
updates and asserts that the observed state is `ERROR`. The probe's
worker can transiently emit `UNACKNOWLEDGED` before it transitions to
`ERROR`, which caused the first ack to fail the strict-equality check
and flake the suite on slower runners.

Skip the transitional `UNACKNOWLEDGED` event so the assertion only
runs on the terminal state we actually care about. The test still
fails if the terminal state is anything other than `ERROR` — we are
only loosening the timing of when it is allowed to arrive.
`assertOnBreakpoint` accepts either a callback (in which case it
applies `DEFAULT_CAPTURE_LIMITS`) or a `{ snapshotConfig, callback }`
pair. The second shape was replacing the full capture-limits object with
whatever the caller passed in, so tests that only wanted to override a
single field (e.g. `maxReferenceDepth`) silently dropped every other
default and behaved unpredictably.

Spread the defaults underneath the caller's override so partial configs
refine the defaults instead of replacing them — matching the callback-
only path's semantics and what every existing caller expects.
* feat(llmobs): add MCP client support with tracing and LLMObs integrations

Adds instrumentation for @modelcontextprotocol/sdk with APM tracing and LLMObs traces.
The `FlaggingProvider` implementation was migrated to printf-style
`log.debug('%s created with timeout: %dms', ...)` calls (cheaper in
hot paths because the format string is only expanded when the log
level is active). Two spec assertions still expected the pre-formatted
interpolated strings and would fail once the production change lands.

Update the two `sinon.assert.calledWith` calls to match the new
format-string + positional-args shape. Pure test catch-up.
…ss 2 directories with 7 updates (#8066)

Bumps the dev-minor-and-patch-dependencies group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) | `9.0.0` | `9.1.0` |
| [bun](https://github.com/oven-sh/bun) | `1.3.11` | `1.3.12` |
| [eslint-plugin-cypress](https://github.com/cypress-io/eslint-plugin-cypress) | `6.2.2` | `6.3.1` |
| [typescript](https://github.com/microsoft/TypeScript) | `6.0.2` | `6.0.3` |
| [workerpool](https://github.com/josdejong/workerpool) | `10.0.1` | `10.0.2` |

Bumps the dev-minor-and-patch-dependencies group with 1 update in the /docs directory: [typedoc](https://github.com/TypeStrong/TypeDoc).


Updates `@actions/github` from 9.0.0 to 9.1.0
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

Updates `bun` from 1.3.11 to 1.3.12
- [Release notes](https://github.com/oven-sh/bun/releases)
- [Commits](oven-sh/bun@bun-v1.3.11...bun-v1.3.12)

Updates `eslint-plugin-cypress` from 6.2.2 to 6.3.1
- [Release notes](https://github.com/cypress-io/eslint-plugin-cypress/releases)
- [Commits](cypress-io/eslint-plugin-cypress@v6.2.2...v6.3.1)

Updates `globals` from 17.4.0 to 17.5.0
- [Release notes](https://github.com/sindresorhus/globals/releases)
- [Commits](sindresorhus/globals@v17.4.0...v17.5.0)

Updates `typescript` from 6.0.2 to 6.0.3
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v6.0.2...v6.0.3)

Updates `workerpool` from 10.0.1 to 10.0.2
- [Changelog](https://github.com/josdejong/workerpool/blob/master/HISTORY.md)
- [Commits](josdejong/workerpool@v10.0.1...v10.0.2)

Updates `typescript` from 6.0.2 to 6.0.3
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v6.0.2...v6.0.3)

Updates `typedoc` from 0.28.18 to 0.28.19
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](TypeStrong/typedoc@v0.28.18...v0.28.19)

---
updated-dependencies:
- dependency-name: "@actions/github"
  dependency-version: 9.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-minor-and-patch-dependencies
- dependency-name: bun
  dependency-version: 1.3.12
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-minor-and-patch-dependencies
- dependency-name: eslint-plugin-cypress
  dependency-version: 6.3.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-minor-and-patch-dependencies
- dependency-name: globals
  dependency-version: 17.5.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dev-minor-and-patch-dependencies
- dependency-name: typescript
  dependency-version: 6.0.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-minor-and-patch-dependencies
- dependency-name: workerpool
  dependency-version: 10.0.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-minor-and-patch-dependencies
- dependency-name: typescript
  dependency-version: 6.0.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-minor-and-patch-dependencies
- dependency-name: typedoc
  dependency-version: 0.28.19
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dev-minor-and-patch-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
The existing spec hard-required the root-installed copy of
\`light-my-request\` and \`fastify\`, so it only ever exercised one
version on CI and silently ignored the rest of the supported range.
Every other instrumentation suite uses \`withVersions\` to sweep the
version matrix maintained by \`install_plugin_modules\`.

Three coordinated changes restore that behavior:

1. The spec is wrapped in \`withVersions('light-my-request', ...)\`
   and the module \`require\`s now resolve through
   \`versions/light-my-request@<version>\` / \`versions/fastify\`, so
   each supported version actually runs.
2. \`packages/dd-trace/test/plugins/externals.js\` registers \`fastify\`
   (>=3) as an external dependency of the \`light-my-request\` suite so
   the matrix installer stages a working fastify alongside each
   \`light-my-request\` version.
3. \`.github/workflows/platform.yml\` adds the
   \`instrumentation-light-my-request\` job, mirroring the pattern used
   by the other \`instrumentation-*\` jobs, so CI actually invokes the
   newly-parameterized suite.

No production code changes, so the blast radius is test-only.
tracer.setUrl(url) is a documented public API that crashes with
"TypeError: this._exporter.setUrl is not a function" whenever OTLP
traces export is enabled (OTEL_TRACES_EXPORTER=otlp), because the
OTLP exporter introduced in #7531 never implemented the method that
the DatadogTracer expects.

Persist defaultPath on the exporter instance and add a setUrl(url)
method that re-parses the URL and updates hostname, port, and path
in place, so customer calls to tracer.setUrl actually retarget OTLP
traffic rather than throwing.
* upgrade docs typescript

* fix additional test error
#8031)

Three related bugs in the OTel-to-Datadog context bridge are fixed:

1. `SpanContext` is a composition wrapper that exposes `traceFlags` via
   `this._ddContext._sampling.priority`. The extractor was writing
   `_sampling` and `_trace` directly on the wrapper, so the values never
   reached `_ddContext` and `traceFlags` always returned 0 regardless of
   the `s:` field in the incoming tracestate.

2. `Number.parseInt(samplingPriorityTs, 10)` produced `NaN` when the
   `dd` tracestate member had no `s:` field. The `NaN` was then passed to
   `_getSamplingPriority`, where it slipped through both conditional
   branches and was returned as-is. `_getSamplingPriority` now uses the
   existing `AUTO_REJECT`/`AUTO_KEEP` constants and defaults to
   `AUTO_KEEP` when the tracestate priority is missing or not a number.
   The caller in `_convertOtelContextToDatadog` guards `parseInt` to
   avoid producing `NaN` in the first place.

3. The `origin` pulled from the `dd` tracestate (`o:` field) was being
   assigned to an inner block-scoped `const origin`, which shadowed the
   outer `origin` variable used when writing `_trace`. As a result the
   origin was silently dropped from every extracted OTel context.
Bumps the test-versions group with 1 update in the /integration-tests/esbuild directory: [axios](https://github.com/axios/axios).


Updates `axios` from 1.15.0 to 1.15.1
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.15.0...v1.15.1)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.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>
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Apr 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

Overall package size

Self size: 5.56 MB
Deduped: 6.4 MB
No deduping: 6.4 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.1 | 82.56 kB | 817.39 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

❌ Patch coverage is 59.12162% with 121 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.70%. Comparing base (6b35e7d) to head (145c808).
⚠️ Report is 934 commits behind head on v5.x.

Files with missing lines Patch % Lines
...c/llmobs/plugins/modelcontextprotocol-sdk/index.js 28.12% 23 Missing ⚠️
...c/llmobs/plugins/modelcontextprotocol-sdk/utils.js 5.26% 18 Missing ⚠️
...ges/datadog-instrumentations/src/cypress-config.js 0.00% 17 Missing ⚠️
packages/datadog-instrumentations/src/vitest.js 0.00% 16 Missing ⚠️
packages/dd-trace/src/aiguard/sdk.js 54.16% 11 Missing ⚠️
...es/datadog-plugin-azure-event-hubs/src/producer.js 0.00% 8 Missing ⚠️
packages/datadog-plugin-vitest/src/index.js 0.00% 6 Missing ⚠️
...s/datadog-plugin-azure-service-bus/src/producer.js 0.00% 4 Missing ⚠️
...nstrumentations/src/helpers/check-require-cache.js 0.00% 2 Missing ⚠️
...ackages/datadog-instrumentations/src/playwright.js 33.33% 2 Missing ⚠️
... and 12 more
Additional details and impacted files
@@            Coverage Diff             @@
##             v5.x    #8077      +/-   ##
==========================================
- Coverage   83.19%   73.70%   -9.50%     
==========================================
  Files         476      782     +306     
  Lines       20153    36316   +16163     
==========================================
+ Hits        16766    26765    +9999     
- Misses       3387     9551    +6164     
Flag Coverage Δ
aiguard-macos 36.38% <46.06%> (?)
aiguard-ubuntu 36.49% <46.06%> (?)
aiguard-windows 36.31% <46.06%> (?)
apm-capabilities-tracing-macos 48.03% <54.29%> (?)
apm-capabilities-tracing-ubuntu 48.06% <54.29%> (?)
apm-integrations-child-process 36.03% <40.00%> (?)
apm-integrations-couchbase-18 35.07% <39.34%> (?)
apm-integrations-couchbase-eol 35.14% <39.34%> (?)
apm-integrations-oracledb 35.12% <39.34%> (?)
appsec-express 52.77% <43.33%> (?)
appsec-fastify 49.25% <43.33%> (?)
appsec-graphql 49.51% <45.00%> (?)
appsec-kafka 42.00% <40.00%> (?)
appsec-ldapjs 41.34% <41.66%> (?)
appsec-lodash 41.37% <41.66%> (?)
appsec-macos 56.81% <46.66%> (?)
appsec-mongodb-core 45.67% <41.66%> (?)
appsec-mongoose 46.56% <41.66%> (?)
appsec-mysql 48.71% <43.33%> (?)
appsec-node-serialize 40.54% <41.66%> (?)
appsec-passport 44.53% <41.66%> (?)
appsec-postgres 48.30% <43.33%> (?)
appsec-sourcing 40.03% <41.66%> (?)
appsec-stripe 42.25% <41.66%> (?)
appsec-template 40.71% <41.66%> (?)
appsec-ubuntu 56.89% <46.66%> (?)
appsec-windows 56.72% <46.66%> (?)
instrumentations-instrumentation-bluebird 29.77% <38.33%> (?)
instrumentations-instrumentation-body-parser 37.66% <41.66%> (?)
instrumentations-instrumentation-child_process 35.43% <40.00%> (?)
instrumentations-instrumentation-cookie-parser 31.70% <38.33%> (?)
instrumentations-instrumentation-express 31.91% <38.33%> (?)
instrumentations-instrumentation-express-mongo-sanitize 31.82% <38.33%> (?)
instrumentations-instrumentation-express-session 37.29% <41.66%> (?)
instrumentations-instrumentation-fs 29.44% <38.33%> (?)
instrumentations-instrumentation-generic-pool 30.84% <22.22%> (?)
instrumentations-instrumentation-http 36.89% <40.00%> (?)
instrumentations-instrumentation-knex 29.74% <38.33%> (?)
instrumentations-instrumentation-light-my-request 37.23% <41.66%> (?)
instrumentations-instrumentation-mongoose 30.83% <38.33%> (?)
instrumentations-instrumentation-multer 37.43% <41.66%> (?)
instrumentations-instrumentation-mysql2 35.41% <40.00%> (?)
instrumentations-instrumentation-passport 41.18% <41.66%> (?)
instrumentations-instrumentation-passport-http 40.87% <41.66%> (?)
instrumentations-instrumentation-passport-local 41.37% <41.66%> (?)
instrumentations-instrumentation-pg 34.93% <40.00%> (?)
instrumentations-instrumentation-promise 29.70% <38.33%> (?)
instrumentations-instrumentation-promise-js 29.71% <38.33%> (?)
instrumentations-instrumentation-q 29.74% <38.33%> (?)
instrumentations-instrumentation-url 29.70% <38.33%> (?)
instrumentations-instrumentation-when 29.72% <38.33%> (?)
llmobs-ai 38.39% <40.00%> (?)
llmobs-anthropic 37.84% <40.00%> (?)
llmobs-bedrock 37.08% <40.98%> (?)
llmobs-google-genai 37.51% <36.92%> (?)
llmobs-langchain 36.99% <39.34%> (?)
llmobs-openai 41.21% <40.00%> (?)
llmobs-vertex-ai 37.63% <40.00%> (?)
platform-core 30.03% <33.33%> (?)
platform-esbuild 32.83% <33.33%> (?)
platform-instrumentations-misc 39.93% <31.57%> (?)
platform-shimmer 35.72% <33.33%> (?)
platform-unit-guardrails 23.44% <33.33%> (?)
platform-webpack 20.80% <12.35%> (?)
plugins-azure-durable-functions 25.36% <50.00%> (?)
plugins-azure-event-hubs 25.51% <50.00%> (?)
plugins-azure-service-bus 24.92% <50.00%> (?)
plugins-bullmq 40.70% <40.00%> (?)
plugins-cassandra 35.26% <39.34%> (?)
plugins-cookie 26.47% <50.00%> (?)
plugins-cookie-parser 26.28% <50.00%> (?)
plugins-crypto 25.70% <33.33%> (?)
plugins-dd-trace-api 35.38% <40.00%> (?)
plugins-express-mongo-sanitize 26.42% <50.00%> (?)
plugins-express-session 26.24% <50.00%> (?)
plugins-fastify 39.31% <41.66%> (?)
plugins-fetch 35.74% <39.34%> (?)
plugins-fs 35.63% <40.00%> (?)
plugins-generic-pool 25.40% <50.00%> (?)
plugins-google-cloud-pubsub 43.01% <40.98%> (?)
plugins-grpc 38.04% <39.34%> (?)
plugins-handlebars 26.46% <50.00%> (?)
plugins-hapi 37.28% <41.66%> (?)
plugins-hono 37.52% <41.66%> (?)
plugins-ioredis 35.68% <39.34%> (?)
plugins-knex 26.14% <50.00%> (?)
plugins-langgraph 35.00% <45.00%> (?)
plugins-ldapjs 24.02% <50.00%> (?)
plugins-light-my-request 25.88% <50.00%> (?)
plugins-limitd-client 30.00% <38.33%> (?)
plugins-lodash 25.47% <50.00%> (?)
plugins-mariadb 36.56% <39.34%> (?)
plugins-memcached 35.35% <39.34%> (?)
plugins-microgateway-core 36.36% <41.66%> (?)
plugins-modelcontextprotocol-sdk 34.29% <47.91%> (?)
plugins-moleculer 38.04% <39.34%> (?)
plugins-mongodb 36.51% <39.34%> (?)
plugins-mongodb-core 36.16% <39.34%> (?)
plugins-mongoose 36.01% <40.00%> (?)
plugins-multer 26.24% <50.00%> (?)
plugins-mysql 36.29% <39.34%> (?)
plugins-mysql2 36.40% <39.34%> (?)
plugins-node-serialize 26.51% <50.00%> (?)
plugins-opensearch 35.02% <39.34%> (?)
plugins-passport-http 26.30% <50.00%> (?)
plugins-pino 31.81% <38.33%> (?)
plugins-postgres 34.41% <39.34%> (?)
plugins-process 25.70% <33.33%> (?)
plugins-pug 26.47% <50.00%> (?)
plugins-redis 35.89% <39.34%> (?)
plugins-router 39.93% <41.66%> (?)
plugins-sequelize 25.18% <50.00%> (?)
plugins-test-and-upstream-amqp10 35.68% <39.34%> (?)
plugins-test-and-upstream-amqplib 40.84% <39.34%> (?)
plugins-test-and-upstream-apollo 36.53% <39.34%> (?)
plugins-test-and-upstream-avsc 35.46% <40.00%> (?)
plugins-test-and-upstream-bunyan 31.15% <38.33%> (?)
plugins-test-and-upstream-connect 37.87% <41.66%> (?)
plugins-test-and-upstream-graphql 37.19% <40.98%> (?)
plugins-test-and-upstream-koa 37.48% <41.66%> (?)
plugins-test-and-upstream-protobufjs 35.68% <40.00%> (?)
plugins-test-and-upstream-rhea 40.95% <39.34%> (?)
plugins-undici 36.51% <39.34%> (?)
plugins-url 25.70% <33.33%> (?)
plugins-valkey 35.37% <39.34%> (?)
plugins-vm 25.70% <33.33%> (?)
plugins-winston 31.59% <38.33%> (?)
plugins-ws 38.97% <40.00%> (?)
profiling-macos 37.91% <40.00%> (?)
profiling-ubuntu 38.51% <40.00%> (?)
profiling-windows 39.44% <43.33%> (?)
serverless-azure-functions-client 25.25% <50.00%> (?)
serverless-azure-functions-eventhubs 25.25% <50.00%> (?)
serverless-azure-functions-servicebus 25.25% <50.00%> (?)

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.

@datadog-official
Copy link
Copy Markdown

datadog-official Bot commented Apr 23, 2026

Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

🎯 Code Coverage (details)
Patch Coverage: 52.79%
Overall Coverage: 68.08%

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

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented Apr 23, 2026

Benchmarks

Benchmark execution time: 2026-04-25 05:52:39

Comparing candidate commit 145c808 in PR branch v5.99.0-proposal with baseline commit 63aea5c in branch v5.x.

Found 24 performance improvements and 4 performance regressions! Performance is the same for 1319 metrics, 97 unstable metrics.

scenario:encoders-0.5-22

  • 🟥 cpu_user_time [+16.211ms; +31.227ms] or [+5.472%; +10.541%]
  • 🟥 execution_time [+22.109ms; +34.744ms] or [+5.818%; +9.143%]

scenario:encoders-0.5-24

  • 🟥 cpu_user_time [+16.807ms; +26.721ms] or [+6.345%; +10.087%]
  • 🟥 execution_time [+21.221ms; +26.752ms] or [+6.028%; +7.600%]

scenario:spans-finish-immediately-18

  • 🟩 cpu_user_time [-99.380ms; -95.183ms] or [-18.531%; -17.749%]
  • 🟩 execution_time [-100.086ms; -96.794ms] or [-17.157%; -16.593%]
  • 🟩 instructions [-598.5M instructions; -591.5M instructions] or [-22.919%; -22.650%]

scenario:spans-finish-immediately-20

  • 🟩 cpu_user_time [-92.324ms; -88.259ms] or [-20.126%; -19.240%]
  • 🟩 execution_time [-92.577ms; -90.056ms] or [-18.386%; -17.885%]
  • 🟩 instructions [-558.7M instructions; -553.1M instructions] or [-24.396%; -24.154%]

scenario:spans-finish-immediately-22

  • 🟩 cpu_user_time [-88.475ms; -84.367ms] or [-19.271%; -18.376%]
  • 🟩 execution_time [-88.975ms; -86.649ms] or [-17.473%; -17.016%]
  • 🟩 instructions [-559.9M instructions; -551.4M instructions] or [-23.986%; -23.623%]

scenario:spans-finish-immediately-24

  • 🟩 cpu_user_time [-81.336ms; -77.136ms] or [-19.038%; -18.055%]
  • 🟩 execution_time [-80.849ms; -76.583ms] or [-16.837%; -15.949%]
  • 🟩 instructions [-540.2M instructions; -533.2M instructions] or [-25.345%; -25.017%]

scenario:spans-finish-later-18

  • 🟩 cpu_user_time [-97.583ms; -88.745ms] or [-11.448%; -10.411%]
  • 🟩 execution_time [-97.322ms; -89.160ms] or [-9.843%; -9.017%]
  • 🟩 instructions [-647.1M instructions; -566.7M instructions] or [-18.158%; -15.902%]

scenario:spans-finish-later-20

  • 🟩 cpu_user_time [-95.123ms; -86.317ms] or [-12.192%; -11.064%]
  • 🟩 execution_time [-93.849ms; -86.899ms] or [-10.313%; -9.550%]
  • 🟩 instructions [-593.6M instructions; -537.7M instructions] or [-18.886%; -17.109%]

scenario:spans-finish-later-22

  • 🟩 cpu_user_time [-91.362ms; -81.463ms] or [-11.891%; -10.603%]
  • 🟩 execution_time [-93.592ms; -83.652ms] or [-10.369%; -9.267%]
  • 🟩 instructions [-598.5M instructions; -511.2M instructions] or [-18.720%; -15.988%]

scenario:spans-finish-later-24

  • 🟩 cpu_user_time [-91.714ms; -80.484ms] or [-12.877%; -11.300%]
  • 🟩 execution_time [-95.267ms; -84.539ms] or [-10.742%; -9.533%]
  • 🟩 instructions [-636.5M instructions; -548.7M instructions] or [-21.426%; -18.471%]

rochdev and others added 10 commits April 24, 2026 05:50
* move instrumentation to their own workflow

* fix yaml

* revert job name change

* fix comment

* fix missing matrix expansion for exercised tests

* fix merge
…ew (#8074)

* refactor(opentelemetry): simplify OTLP traces setup per PR #7531 review

- Hardcoding defaults and DD_AGENT_HOST-based URLs diverged from the OTel
  spec, which defines a fixed localhost:4318 default. Moving defaults to
  JSON also drops code that duplicated what the config framework already
  supports.
- Having config pre-build signal subpaths for some exporters but not
  others made the layers inconsistent. Putting subpath handling in setUrl
  keeps the knowledge where it's already used.
- Building the OTLP exporter in proxy.js leaked OTLP concerns into code
  that shouldn't know about exporter selection; DatadogTracer already
  picks an exporter from config for the agent case.
- internalPropertyName and otelTracesEnabled added naming layers with no
  benefit; the latter also emitted misleading telemetry for a derived
  value.
- Declarative "allowed" validation is easier to maintain than a runtime
  warning block, and the alias machinery already handles generic→specific
  fallback, so the custom code was redundant.
- The OTel-formatted key=value map arrived mis-parsed, forcing a re-map
  in the exporter and producing wrong telemetry values.
- The sampler ternary was dead code — OTEL_TRACES_SAMPLER's default
  already covers the opt-in path.

Trace transformer:
- deployment.environment.name is the stable OTel convention; keep up.
- error.type was being dropped during the DD→OTel transform, losing
  information users expect to see.
- Loose JSDoc types hid bugs at review time; allocating per span for
  root detection and copying bytes by hand was avoidable overhead.
- Added TODOs where follow-up work is known: batching (per-trace HTTP
  requests are unsuitable for production traffic) and base64 meta_struct
  (needs revisiting once protobuf lands).

Tests:
- process.setMaxListeners(50) worked around a safeguard rather than
  fixing the underlying listener leak. Building exporters directly
  avoids spinning up a tracer per test, which was the real source of
  the leak.
- The integration test could leave a promise unhandled on failure and
  used imperative transforms that hid what the payload actually looked
  like.
When handling ESM files, we may not introduce CJS in those. Instead
use import instead.

Fixes: #7991
This updates our configuration types by checking if the calculated
configs make them always assigned or not.

Next to that, update a few other manual config entries that are
outdated due to in-between fixes.
@dd-octo-sts dd-octo-sts Bot force-pushed the v5.99.0-proposal branch from dddff10 to 050d6f1 Compare April 24, 2026 05:50
BridgeAR and others added 3 commits April 25, 2026 05:39
The config should be used directly, otherwise we duplicate the work.

This improves runtime in some spots slightly as seen in the benchmarks.
They dropped support for Node.js 18 in 2025 and the versions we
support automatically pull in latest peer dependencies that now
start to fail.

To fix it, a new action option is added that allows to adjust the
lower bound of the testing range.
@dd-octo-sts dd-octo-sts Bot force-pushed the v5.99.0-proposal branch from 050d6f1 to 145c808 Compare April 25, 2026 05:39
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.