@datadog/pprof 5.18.0 → 5.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/out/src/async-context-frame.d.ts +48 -0
  2. package/out/src/async-context-frame.js +106 -0
  3. package/out/src/async-context-frame.js.map +1 -0
  4. package/out/src/otel-thread-ctx.js +9 -18
  5. package/out/src/otel-thread-ctx.js.map +1 -1
  6. package/package.json +5 -5
  7. package/prebuilds/darwin-arm64/dd_pprof.node.abi108.node +0 -0
  8. package/prebuilds/darwin-arm64/dd_pprof.node.abi111.node +0 -0
  9. package/prebuilds/darwin-arm64/dd_pprof.node.abi115.node +0 -0
  10. package/prebuilds/darwin-arm64/dd_pprof.node.abi120.node +0 -0
  11. package/prebuilds/darwin-arm64/dd_pprof.node.abi127.node +0 -0
  12. package/prebuilds/darwin-arm64/dd_pprof.node.abi131.node +0 -0
  13. package/prebuilds/darwin-arm64/dd_pprof.node.abi137.node +0 -0
  14. package/prebuilds/darwin-arm64/dd_pprof.node.abi141.node +0 -0
  15. package/prebuilds/darwin-arm64/dd_pprof.node.abi147.node +0 -0
  16. package/prebuilds/darwin-x64/dd_pprof.node.abi108.node +0 -0
  17. package/prebuilds/darwin-x64/dd_pprof.node.abi111.node +0 -0
  18. package/prebuilds/darwin-x64/dd_pprof.node.abi115.node +0 -0
  19. package/prebuilds/darwin-x64/dd_pprof.node.abi120.node +0 -0
  20. package/prebuilds/darwin-x64/dd_pprof.node.abi127.node +0 -0
  21. package/prebuilds/darwin-x64/dd_pprof.node.abi131.node +0 -0
  22. package/prebuilds/darwin-x64/dd_pprof.node.abi137.node +0 -0
  23. package/prebuilds/darwin-x64/dd_pprof.node.abi141.node +0 -0
  24. package/prebuilds/darwin-x64/dd_pprof.node.abi147.node +0 -0
  25. package/prebuilds/linux-arm64/dd_pprof.musl.node.abi108.node +0 -0
  26. package/prebuilds/linux-arm64/dd_pprof.musl.node.abi111.node +0 -0
  27. package/prebuilds/linux-arm64/dd_pprof.musl.node.abi115.node +0 -0
  28. package/prebuilds/linux-arm64/dd_pprof.musl.node.abi120.node +0 -0
  29. package/prebuilds/linux-arm64/dd_pprof.musl.node.abi127.node +0 -0
  30. package/prebuilds/linux-arm64/dd_pprof.musl.node.abi131.node +0 -0
  31. package/prebuilds/linux-arm64/dd_pprof.musl.node.abi137.node +0 -0
  32. package/prebuilds/linux-arm64/dd_pprof.musl.node.abi141.node +0 -0
  33. package/prebuilds/linux-arm64/dd_pprof.musl.node.abi147.node +0 -0
  34. package/prebuilds/linux-arm64/dd_pprof.node.abi108.node +0 -0
  35. package/prebuilds/linux-arm64/dd_pprof.node.abi111.node +0 -0
  36. package/prebuilds/linux-arm64/dd_pprof.node.abi115.node +0 -0
  37. package/prebuilds/linux-arm64/dd_pprof.node.abi120.node +0 -0
  38. package/prebuilds/linux-arm64/dd_pprof.node.abi127.node +0 -0
  39. package/prebuilds/linux-arm64/dd_pprof.node.abi131.node +0 -0
  40. package/prebuilds/linux-arm64/dd_pprof.node.abi137.node +0 -0
  41. package/prebuilds/linux-arm64/dd_pprof.node.abi141.node +0 -0
  42. package/prebuilds/linux-arm64/dd_pprof.node.abi147.node +0 -0
  43. package/prebuilds/linux-x64/dd_pprof.musl.node.abi108.node +0 -0
  44. package/prebuilds/linux-x64/dd_pprof.musl.node.abi111.node +0 -0
  45. package/prebuilds/linux-x64/dd_pprof.musl.node.abi115.node +0 -0
  46. package/prebuilds/linux-x64/dd_pprof.musl.node.abi120.node +0 -0
  47. package/prebuilds/linux-x64/dd_pprof.musl.node.abi127.node +0 -0
  48. package/prebuilds/linux-x64/dd_pprof.musl.node.abi131.node +0 -0
  49. package/prebuilds/linux-x64/dd_pprof.musl.node.abi137.node +0 -0
  50. package/prebuilds/linux-x64/dd_pprof.musl.node.abi141.node +0 -0
  51. package/prebuilds/linux-x64/dd_pprof.musl.node.abi147.node +0 -0
  52. package/prebuilds/linux-x64/dd_pprof.node.abi108.node +0 -0
  53. package/prebuilds/linux-x64/dd_pprof.node.abi111.node +0 -0
  54. package/prebuilds/linux-x64/dd_pprof.node.abi115.node +0 -0
  55. package/prebuilds/linux-x64/dd_pprof.node.abi120.node +0 -0
  56. package/prebuilds/linux-x64/dd_pprof.node.abi127.node +0 -0
  57. package/prebuilds/linux-x64/dd_pprof.node.abi131.node +0 -0
  58. package/prebuilds/linux-x64/dd_pprof.node.abi137.node +0 -0
  59. package/prebuilds/linux-x64/dd_pprof.node.abi141.node +0 -0
  60. package/prebuilds/linux-x64/dd_pprof.node.abi147.node +0 -0
  61. package/prebuilds/win32-x64/dd_pprof.node.abi108.node +0 -0
  62. package/prebuilds/win32-x64/dd_pprof.node.abi111.node +0 -0
  63. package/prebuilds/win32-x64/dd_pprof.node.abi115.node +0 -0
  64. package/prebuilds/win32-x64/dd_pprof.node.abi120.node +0 -0
  65. package/prebuilds/win32-x64/dd_pprof.node.abi127.node +0 -0
  66. package/prebuilds/win32-x64/dd_pprof.node.abi131.node +0 -0
  67. package/prebuilds/win32-x64/dd_pprof.node.abi137.node +0 -0
  68. package/prebuilds/win32-x64/dd_pprof.node.abi141.node +0 -0
  69. package/prebuilds/win32-x64/dd_pprof.node.abi147.node +0 -0
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Whether this process's `AsyncLocalStorage` is backed by AsyncContextFrame,
3
+ * which is what puts the active value in the isolate's
4
+ * ContinuationPreservedEmbedderData slot that this addon reads.
5
+ *
6
+ * Feature-detected rather than inferred from the Node version plus
7
+ * `process.execArgv`, because the two disagree in both directions and each
8
+ * combination is reachable today:
9
+ *
10
+ * - `NODE_OPTIONS=--experimental-async-context-frame` is accepted from Node
11
+ * 22.7.0 through 23 and turns ACF on without appearing in `execArgv`.
12
+ * Inferring "off" there makes callers refuse to run in a process that would
13
+ * have worked.
14
+ * - `NODE_OPTIONS=--no-async-context-frame` is accepted on Node 24 and turns
15
+ * ACF off without appearing in `execArgv`. Inferring "on" there is the worse
16
+ * error: the CPED slot is never written, so a writer that starts anyway keeps
17
+ * looking healthy from JS — `getStore()` still works — while every
18
+ * out-of-process reader sees a record that nothing ever updates.
19
+ * - A worker thread created with an explicit `execArgv` doesn't inherit the
20
+ * main thread's command line either, and tooling sometimes rewrites
21
+ * `process.execArgv` outright.
22
+ *
23
+ * Detected by asking the addon what is in the CPED slot during a `run()`. With
24
+ * ACF, Node installs an AsyncContextFrame — a JS Map keyed by the
25
+ * `AsyncLocalStorage` instance, valued by its store — as the running
26
+ * continuation's CPED; without it, nothing writes the slot. So a probe storage
27
+ * whose own store is visible there is direct evidence, and it is evidence about
28
+ * the exact slot both consumers read: `WallProfiler::SetContext` requires that
29
+ * Map, and the thread-ctx reader looks this very key up by the identity hash
30
+ * published as `als_identity_hash`.
31
+ *
32
+ * Observing whether `run()` delegates to `enterWith()` would be an indirect
33
+ * proxy for the same thing: it holds today, but it depends on `run()`
34
+ * dispatching through the instance property, which is unspecified and which
35
+ * anything patching `AsyncLocalStorage` can break — and the failure would be
36
+ * silent and in the dangerous direction.
37
+ *
38
+ * Memoized: the answer is fixed for the life of the thread.
39
+ */
40
+ export declare function isAsyncContextFrameActive(): boolean;
41
+ /**
42
+ * How to turn AsyncContextFrame on, for the error message of whatever declined
43
+ * to run without it.
44
+ *
45
+ * Advisory text only — never decide availability from this. That is what
46
+ * {@link isAsyncContextFrameActive} is for.
47
+ */
48
+ export declare function asyncContextFrameHint(): string;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2026 Datadog, Inc
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.isAsyncContextFrameActive = isAsyncContextFrameActive;
19
+ exports.asyncContextFrameHint = asyncContextFrameHint;
20
+ const node_async_hooks_1 = require("node:async_hooks");
21
+ const path_1 = require("path");
22
+ let addon;
23
+ // Required lazily so importing this module doesn't force the addon to load;
24
+ // memoized by isAsyncContextFrameActive, so this runs at most once per thread.
25
+ function bindings() {
26
+ if (!addon) {
27
+ const findBinding = require('node-gyp-build');
28
+ addon = findBinding((0, path_1.join)(__dirname, '..', '..'));
29
+ }
30
+ return addon;
31
+ }
32
+ let active;
33
+ /**
34
+ * Whether this process's `AsyncLocalStorage` is backed by AsyncContextFrame,
35
+ * which is what puts the active value in the isolate's
36
+ * ContinuationPreservedEmbedderData slot that this addon reads.
37
+ *
38
+ * Feature-detected rather than inferred from the Node version plus
39
+ * `process.execArgv`, because the two disagree in both directions and each
40
+ * combination is reachable today:
41
+ *
42
+ * - `NODE_OPTIONS=--experimental-async-context-frame` is accepted from Node
43
+ * 22.7.0 through 23 and turns ACF on without appearing in `execArgv`.
44
+ * Inferring "off" there makes callers refuse to run in a process that would
45
+ * have worked.
46
+ * - `NODE_OPTIONS=--no-async-context-frame` is accepted on Node 24 and turns
47
+ * ACF off without appearing in `execArgv`. Inferring "on" there is the worse
48
+ * error: the CPED slot is never written, so a writer that starts anyway keeps
49
+ * looking healthy from JS — `getStore()` still works — while every
50
+ * out-of-process reader sees a record that nothing ever updates.
51
+ * - A worker thread created with an explicit `execArgv` doesn't inherit the
52
+ * main thread's command line either, and tooling sometimes rewrites
53
+ * `process.execArgv` outright.
54
+ *
55
+ * Detected by asking the addon what is in the CPED slot during a `run()`. With
56
+ * ACF, Node installs an AsyncContextFrame — a JS Map keyed by the
57
+ * `AsyncLocalStorage` instance, valued by its store — as the running
58
+ * continuation's CPED; without it, nothing writes the slot. So a probe storage
59
+ * whose own store is visible there is direct evidence, and it is evidence about
60
+ * the exact slot both consumers read: `WallProfiler::SetContext` requires that
61
+ * Map, and the thread-ctx reader looks this very key up by the identity hash
62
+ * published as `als_identity_hash`.
63
+ *
64
+ * Observing whether `run()` delegates to `enterWith()` would be an indirect
65
+ * proxy for the same thing: it holds today, but it depends on `run()`
66
+ * dispatching through the instance property, which is unspecified and which
67
+ * anything patching `AsyncLocalStorage` can break — and the failure would be
68
+ * silent and in the dangerous direction.
69
+ *
70
+ * Memoized: the answer is fixed for the life of the thread.
71
+ */
72
+ function isAsyncContextFrameActive() {
73
+ if (active === undefined) {
74
+ const probe = new node_async_hooks_1.AsyncLocalStorage();
75
+ // Object identity, so a stray equal-valued binding can't answer for us.
76
+ const sentinel = {};
77
+ let bound = false;
78
+ probe.run(sentinel, () => {
79
+ bound = bindings().cpedMapContains(probe, sentinel);
80
+ });
81
+ probe.disable();
82
+ active = bound;
83
+ }
84
+ return active;
85
+ }
86
+ /**
87
+ * How to turn AsyncContextFrame on, for the error message of whatever declined
88
+ * to run without it.
89
+ *
90
+ * Advisory text only — never decide availability from this. That is what
91
+ * {@link isAsyncContextFrameActive} is for.
92
+ */
93
+ function asyncContextFrameHint() {
94
+ const version = process.versions.node;
95
+ const [major, minor] = version.split('.').map(Number);
96
+ // Hand-rolled rather than semver.satisfies: semver is a devDependency, and
97
+ // this module ships.
98
+ if (major < 22 || (major === 22 && minor < 7)) {
99
+ return `Node ${version} does not support it at all; Node 24 and later enable it by default`;
100
+ }
101
+ if (major < 24) {
102
+ return `Node ${version} needs --experimental-async-context-frame, on the command line or in NODE_OPTIONS; Node 24 and later enable it by default`;
103
+ }
104
+ return `Node ${version} enables it by default, so something turned it off — look for --no-async-context-frame on the command line, in NODE_OPTIONS, or in this worker's execArgv`;
105
+ }
106
+ //# sourceMappingURL=async-context-frame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"async-context-frame.js","sourceRoot":"","sources":["../../ts/src/async-context-frame.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AA8DH,8DAaC;AASD,sDAYC;AA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AAC,EAAE,CAAC;QAC9C,OAAO,QAAQ,OAAO,qEAAqE,CAAC;IAC9F,CAAC;IACD,IAAI,KAAK,GAAG,EAAE,EAAE,CAAC;QACf,OAAO,QAAQ,OAAO,2HAA2H,CAAC;IACpJ,CAAC;IACD,OAAO,QAAQ,OAAO,2JAA2J,CAAC;AACpL,CAAC"}
@@ -22,6 +22,11 @@ exports.getProcessContextAttributes = getProcessContextAttributes;
22
22
  // as a near-verbatim copy: edits should ideally land upstream first and
23
23
  // be ported here, so the two stay in sync. We plan to drop this vendored
24
24
  // copy once the upstream package is suitable to depend on directly.
25
+ //
26
+ // Known divergence from upstream: AsyncContextFrame availability is
27
+ // feature-detected via ./async-context-frame instead of being inferred from
28
+ // `process.execArgv`, which is wrong in both directions — see that module. Keep
29
+ // the divergence across re-syncs until upstream does the same.
25
30
  // Node.js writer for the OpenTelemetry Thread Local Context Record
26
31
  // (OTEP-4947), discoverable from an out-of-process reader via the
27
32
  // `otel_thread_ctx_nodejs_v1` thread-local symbol exported by
@@ -30,6 +35,7 @@ exports.getProcessContextAttributes = getProcessContextAttributes;
30
35
  // Linux only; on other platforms the exported functions degrade to no-ops.
31
36
  const path_1 = require("path");
32
37
  const node_async_hooks_1 = require("node:async_hooks");
38
+ const async_context_frame_1 = require("./async-context-frame");
33
39
  const SCHEMA_VERSION = 'nodejs_v1_dev';
34
40
  // V8 layout constants the addon captured from the V8 headers Node bundles.
35
41
  // On non-Linux these fall back to values matching Node's standard build
@@ -55,27 +61,12 @@ if (process.platform === 'linux') {
55
61
  ORDERED_HASH_MAP_HEADER_SIZE = addon.otelThreadCtxOrderedHashMapHeaderSize;
56
62
  exports.ThreadContext = addon.threadContext;
57
63
  let als;
58
- function asyncContextFrameError() {
59
- const [major] = process.versions.node.split('.').map(Number);
60
- if (process.execArgv.includes('--no-async-context-frame')) {
61
- return 'Node explicitly launched with --no-async-context-frame';
62
- }
63
- if (major >= 24)
64
- return undefined;
65
- if (process.execArgv.includes('--experimental-async-context-frame')) {
66
- return undefined;
67
- }
68
- if (major >= 22) {
69
- return 'Node versions prior to v24 must be launched with --experimental-async-context-frame';
70
- }
71
- return 'Node major versions prior to v22 do not support the feature at all';
72
- }
73
64
  function ensureHook() {
74
65
  if (als)
75
66
  return als;
76
- const err = asyncContextFrameError();
77
- if (err) {
78
- throw new Error(`otel thread-ctx writer requires async_context_frame support, which is unavailable: ${err}.`);
67
+ if (!(0, async_context_frame_1.isAsyncContextFrameActive)()) {
68
+ throw new Error('otel thread-ctx writer requires async_context_frame support, which is ' +
69
+ `unavailable: ${(0, async_context_frame_1.asyncContextFrameHint)()}.`);
79
70
  }
80
71
  als = new node_async_hooks_1.AsyncLocalStorage();
81
72
  addon.otelThreadCtxStoreAls(als);
@@ -1 +1 @@
1
- {"version":3,"file":"otel-thread-ctx.js","sourceRoot":"","sources":["../../ts/src/otel-thread-ctx.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAgQH,kEA6BC;AA3RD,2FAA2F;AAC3F,yEAAyE;AACzE,wEAAwE;AACxE,yEAAyE;AACzE,oEAAoE;AAEpE,mEAAmE;AACnE,kEAAkE;AAClE,8DAA8D;AAC9D,mBAAmB;AACnB,EAAE;AACF,2EAA2E;AAE3E,+BAA0B;AAC1B,uDAAmD;AAiGnD,MAAM,cAAc,GAAG,eAAe,CAAC;AAEvC,2EAA2E;AAC3E,wEAAwE;AACxE,wEAAwE;AACxE,uEAAuE;AACvE,uBAAuB;AACvB,IAAI,qBAAqB,GAAG,EAAE,CAAC;AAC/B,IAAI,WAAW,GAAG,CAAC,CAAC;AACpB,IAAI,yBAAyB,GAAG,CAAC,CAAC;AAClC,IAAI,mBAAmB,GAAG,IAAI,CAAC;AAC/B,IAAI,4BAA4B,GAAG,IAAI,CAAC;AAkBxC,uEAAuE;AAChE,IAAI,mBAAmB,GAAiC,GAAG,EAAE,CAAC,SAAS,CAAC;AAApE,QAAA,mBAAmB,uBAAiD;AAE/E,IAAI,OAAO,CAAC,Q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IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACrB,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;YAC7B,MAAM,IAAI,SAAS,CAAC,4BAA4B,CAAC,CAAC;QACpD,CAAC;QACD,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QAC/D,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACjB,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,4BAA4B,EAAE,cAAc;QAC5C,+BAA+B,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QAC5D,mCAAmC,EAAE,qBAAqB;QAC1D,yBAAyB,EAAE,WAAW;QACtC,uCAAuC,EAAE,yBAAyB;QAClE,iCAAiC,EAAE,mBAAmB;QACtD,0CAA0C,EAAE,4BAA4B;KACzE,CAA6B,CAAC;AACjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datadog/pprof",
3
- "version": "5.18.0",
3
+ "version": "5.18.1",
4
4
  "description": "pprof support for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,17 +43,17 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/mocha": "^10.0.1",
46
- "@types/node": "26.1.2",
47
- "@types/semver": "^7.5.8",
46
+ "@types/node": "26.2.0",
47
+ "@types/semver": "^7.8.0",
48
48
  "@types/sinon": "^22.0.0",
49
49
  "@types/tmp": "^0.2.3",
50
50
  "clang-format": "^1.8.0",
51
51
  "codecov": "^3.8.3",
52
52
  "deep-copy": "^1.4.2",
53
- "eslint-plugin-n": "^18.2.2",
53
+ "eslint-plugin-n": "^18.3.0",
54
54
  "gts": "^7.0.0",
55
55
  "js-green-licenses": "^4.0.0",
56
- "mocha": "^11.7.6",
56
+ "mocha": "^11.8.0",
57
57
  "nan": "^2.28.0",
58
58
  "nyc": "^18.0.0",
59
59
  "semver": "^7.8.5",