Skip to content

[Backport 7.85.x] fix(cws): read the Node.js record slot offset from the discovery struct - #57447

Open
dd-octo-sts[bot] wants to merge 1 commit into
7.85.xfrom
backport-57373-to-7.85.x
Open

dd-octo-sts[bot] wants to merge 1 commit into
7.85.xfrom
backport-57373-to-7.85.x

Conversation

@dd-octo-sts

@dd-octo-sts dd-octo-sts Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Backport 8ccaee6 from #57373.


What does this PR do?

Reads the JSObject record slot offset from the per-thread otel_thread_ctx_nodejs_v1 discovery struct, instead of hardcoding it, and drops the unused offset attributes from the test writer.

Motivation

The offset is 24 bytes on Node.js 22 and 32 on Node.js 23+, so the writer now publishes it per thread (DataDog/pprof-nodejs#421).

…ct (#57373) ### What does this PR do?

Reads the JSObject record slot offset from the per-thread `otel_thread_ctx_nodejs_v1` discovery struct, instead of hardcoding it, and drops the unused offset attributes from the test writer.

### Motivation

The offset is 24 bytes on Node.js 22 and 32 on Node.js 23+, so the writer now publishes it per thread (DataDog/pprof-nodejs#421).

Co-authored-by: daniel.mercier <daniel.mercier@datadoghq.com>
(cherry picked from commit 8ccaee6)

___

Co-authored-by: Daniel Mercier <daniel.mercier@datadoghq.com>
@dd-octo-sts
dd-octo-sts Bot requested a review from a team as a code owner October 2, 2026 14:23
@dd-octo-sts dd-octo-sts Bot added backport bot changelog/no-changelog No changelog entry needed component/system-probe internal Identify a non-fork PR medium review PR review might take time qa/no-code-change No code change in Agent code requiring validation team/agent-security labels Oct 2, 2026
@datadog-official

datadog-official Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 58.42% (+0.02%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: b2b5fe9 | Docs | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Files inventory check summary

File checks results against ancestor dddd723f:

Results for datadog-agent_7.85.0~rc.2.git.10.b2b5fe9.pipeline.141968797-1_amd64.deb:

No change detected

Results for datadog-iot-agent_7.85.0~rc.2.git.10.b2b5fe9.pipeline.141968797-1_amd64.deb:

No change detected

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bot changelog/no-changelog No changelog entry needed component/system-probe internal Identify a non-fork PR medium review PR review might take time qa/no-code-change No code change in Agent code requiring validation team/agent-security

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants