@sentry/profiling-node 8.41.0 → 8.43.0
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.
- package/lib/cjs/index.js +2 -4
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.js +2 -4
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/package.json +1 -1
- package/lib/sentry_cpu_profiler-darwin-arm64-108.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-115.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-127.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-arm64-93.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-108.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-115.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-127.node +0 -0
- package/lib/sentry_cpu_profiler-darwin-x64-93.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-108.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-115.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-127.node +0 -0
- package/lib/sentry_cpu_profiler-win32-x64-93.node +0 -0
- package/lib/types/cpu_profiler.d.ts.map +1 -1
- package/lib/types/integration.d.ts +2 -2
- package/lib/types/integration.d.ts.map +1 -1
- package/lib/types/spanProfileUtils.d.ts +1 -1
- package/lib/types/spanProfileUtils.d.ts.map +1 -1
- package/lib/types/types.d.ts +1 -1
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/utils.d.ts +1 -1
- package/lib/types/utils.d.ts.map +1 -1
- package/lib/types-ts3.8/integration.d.ts +2 -2
- package/lib/types-ts3.8/spanProfileUtils.d.ts +1 -1
- package/lib/types-ts3.8/types.d.ts +1 -1
- package/lib/types-ts3.8/utils.d.ts +1 -1
- package/package.json +4 -6
- package/scripts/prune-profiler-binaries.js +6 -1
package/lib/cjs/index.js
CHANGED
|
@@ -146,6 +146,7 @@ function importCppBindingsModule() {
|
|
|
146
146
|
return require('../sentry_cpu_profiler-linux-arm64-musl-127.node');
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
+
|
|
149
150
|
if (stdlib === 'glibc') {
|
|
150
151
|
if (abi === '93') {
|
|
151
152
|
return require('../sentry_cpu_profiler-linux-arm64-glibc-93.node');
|
|
@@ -201,8 +202,7 @@ const CpuProfilerBindings = new Bindings();
|
|
|
201
202
|
const NODE_VERSION = core.parseSemver(process.versions.node) ;
|
|
202
203
|
const NODE_MAJOR = NODE_VERSION.major;
|
|
203
204
|
|
|
204
|
-
function _nullishCoalesce$1(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }function _optionalChain$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
205
|
-
|
|
205
|
+
function _nullishCoalesce$1(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }function _optionalChain$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
206
206
|
// We require the file because if we import it, it will be included in the bundle.
|
|
207
207
|
// I guess tsc does not check file contents when it's imported.
|
|
208
208
|
const PROFILER_THREAD_ID_STRING = String(worker_threads.threadId);
|
|
@@ -725,8 +725,6 @@ var ProfileFormat;(function (ProfileFormat) {
|
|
|
725
725
|
const CHUNK = 1; ProfileFormat[ProfileFormat["CHUNK"] = CHUNK] = "CHUNK";
|
|
726
726
|
})(ProfileFormat || (ProfileFormat = {}));
|
|
727
727
|
|
|
728
|
-
/* eslint-disable max-lines */
|
|
729
|
-
|
|
730
728
|
const CHUNK_INTERVAL_MS = 5000;
|
|
731
729
|
const PROFILE_MAP = new core.LRUMap(50);
|
|
732
730
|
const PROFILE_TIMEOUTS = {};
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/esm/index.js
CHANGED
|
@@ -154,6 +154,7 @@ function importCppBindingsModule() {
|
|
|
154
154
|
return require('../sentry_cpu_profiler-linux-arm64-musl-127.node');
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
+
|
|
157
158
|
if (stdlib === 'glibc') {
|
|
158
159
|
if (abi === '93') {
|
|
159
160
|
return require('../sentry_cpu_profiler-linux-arm64-glibc-93.node');
|
|
@@ -209,8 +210,7 @@ const CpuProfilerBindings = new Bindings();
|
|
|
209
210
|
const NODE_VERSION = parseSemver(process.versions.node) ;
|
|
210
211
|
const NODE_MAJOR = NODE_VERSION.major;
|
|
211
212
|
|
|
212
|
-
function _nullishCoalesce$1(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }function _optionalChain$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
213
|
-
|
|
213
|
+
function _nullishCoalesce$1(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }function _optionalChain$1(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
214
214
|
// We require the file because if we import it, it will be included in the bundle.
|
|
215
215
|
// I guess tsc does not check file contents when it's imported.
|
|
216
216
|
const PROFILER_THREAD_ID_STRING = String(threadId$1);
|
|
@@ -733,8 +733,6 @@ var ProfileFormat;(function (ProfileFormat) {
|
|
|
733
733
|
const CHUNK = 1; ProfileFormat[ProfileFormat["CHUNK"] = CHUNK] = "CHUNK";
|
|
734
734
|
})(ProfileFormat || (ProfileFormat = {}));
|
|
735
735
|
|
|
736
|
-
/* eslint-disable max-lines */
|
|
737
|
-
|
|
738
736
|
const CHUNK_INTERVAL_MS = 5000;
|
|
739
737
|
const PROFILE_MAP = new LRUMap(50);
|
|
740
738
|
const PROFILE_TIMEOUTS = {};
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"8.
|
|
1
|
+
{"type":"module","version":"8.43.0","sideEffects":false}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cpu_profiler.d.ts","sourceRoot":"","sources":["../../src/cpu_profiler.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAgB7C;;GAEG;AAEH,wBAAgB,uBAAuB,IAAI,4BAA4B,
|
|
1
|
+
{"version":3,"file":"cpu_profiler.d.ts","sourceRoot":"","sources":["../../src/cpu_profiler.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,4BAA4B,EAC5B,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAgB7C;;GAEG;AAEH,wBAAgB,uBAAuB,IAAI,4BAA4B,CAgItE;AAED,QAAA,MAAM,0BAA0B,EAAE,4BAAwD,CAAC;AAE3F,cAAM,QAAS,YAAW,qBAAqB;IACtC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IASlC,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,GAAG,mBAAmB,GAAG,IAAI;IACrF,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,KAAK,GAAG,kBAAkB,GAAG,IAAI;CAkB3F;AAED,QAAA,MAAM,mBAAmB,UAAiB,CAAC;AAE3C,OAAO,EAAE,0BAA0B,EAAE,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { ProfilingIntegration } from '@sentry/core';
|
|
1
2
|
import type { NodeClient } from '@sentry/node';
|
|
2
|
-
import type { ProfilingIntegration } from '@sentry/types';
|
|
3
3
|
/** Exported only for tests. */
|
|
4
4
|
export declare const _nodeProfilingIntegration: () => ProfilingIntegration<NodeClient>;
|
|
5
5
|
/**
|
|
@@ -8,5 +8,5 @@ export declare const _nodeProfilingIntegration: () => ProfilingIntegration<NodeC
|
|
|
8
8
|
* contains a profile on it's metadata. If that is the case, we create a profiling event envelope
|
|
9
9
|
* and delete the profile from the transaction metadata.
|
|
10
10
|
*/
|
|
11
|
-
export declare const nodeProfilingIntegration: () => import("@sentry/
|
|
11
|
+
export declare const nodeProfilingIntegration: () => import("@sentry/core").Integration;
|
|
12
12
|
//# sourceMappingURL=integration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../src/integration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../src/integration.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA+C,oBAAoB,EAAQ,MAAM,cAAc,CAAC;AAa5G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA2Z/C,+BAA+B;AAC/B,eAAO,MAAM,yBAAyB,QAAQ,qBAAqB,UAAU,CA8CnD,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,0CAA+C,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CustomSamplingContext, Span } from '@sentry/core';
|
|
1
2
|
import type { NodeClient } from '@sentry/node';
|
|
2
|
-
import type { CustomSamplingContext, Span } from '@sentry/types';
|
|
3
3
|
import type { RawThreadCpuProfile } from './types';
|
|
4
4
|
export declare const MAX_PROFILE_DURATION_MS: number;
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spanProfileUtils.d.ts","sourceRoot":"","sources":["../../src/spanProfileUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"spanProfileUtils.d.ts","sourceRoot":"","sources":["../../src/spanProfileUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGnD,eAAO,MAAM,uBAAuB,QAAY,CAAC;AAEjD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,UAAU,GAAG,SAAS,EAC9B,IAAI,EAAE,IAAI,EACV,qBAAqB,CAAC,EAAE,qBAAqB,GAC5C,MAAM,GAAG,SAAS,CAkFpB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,mBAAmB,GAAG,IAAI,CAsBtG"}
|
package/lib/types/types.d.ts
CHANGED
package/lib/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,UAAU,MAAM;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,sBAA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AC;IAC9B,aAAa,CACX,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,aAAa,CAAC,KAAK,EAC3B,QAAQ,EAAE,MAAM,EAChB,gBAAgB,EAAE,OAAO,GACxB,kBAAkB,GAAG,IAAI,CAAC;IAG7B,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1C;AAED,oBAAY,aAAa;IACvB,MAAM,IAAI;IACV,KAAK,IAAI;CACV;AAED,MAAM,WAAW,qBAAqB;IACpC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,GAAG,mBAAmB,GAAG,IAAI,CAAC;IACtF,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,CAAC,KAAK,GAAG,kBAAkB,GAAG,IAAI,CAAC;CACrF"}
|
package/lib/types/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Client, ContinuousThreadCpuProfile, DebugImage, DsnComponents, Envelope, Event, EventEnvelopeHeaders, Profile, ProfileChunk, ProfileChunkEnvelope, SdkInfo, ThreadCpuProfile } from '@sentry/
|
|
1
|
+
import type { Client, ContinuousThreadCpuProfile, DebugImage, DsnComponents, Envelope, Event, EventEnvelopeHeaders, Profile, ProfileChunk, ProfileChunkEnvelope, SdkInfo, ThreadCpuProfile } from '@sentry/core';
|
|
2
2
|
import type { RawChunkCpuProfile, RawThreadCpuProfile } from './types';
|
|
3
3
|
export declare const PROFILER_THREAD_ID_STRING: string;
|
|
4
4
|
export declare const PROFILER_THREAD_NAME: string;
|
package/lib/types/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts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E,CAepH;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,IAAI,kBAAkB,CAW9F;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,QAAQ,CAUvF;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,CAAC,QAAQ,EAAE,QAAQ,GAAG,KAAK,EAAE,CA2BhF;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,GAAG,SAAS,EAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,GAAG,CAAC,EAAE,aAAa,GAClB,oBAAoB,CAOtB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,OAAO,GAAG,SAAS,EAC5B,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,GAAG,CAAC,EAAE,aAAa,GAClB,oBAAoB,CAQtB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,UAAU,EAAE,CAQtG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ProfilingIntegration } from '@sentry/core';
|
|
1
2
|
import { NodeClient } from '@sentry/node';
|
|
2
|
-
import { ProfilingIntegration } from '@sentry/types';
|
|
3
3
|
/** Exported only for tests. */
|
|
4
4
|
export declare const _nodeProfilingIntegration: () => ProfilingIntegration<NodeClient>;
|
|
5
5
|
/**
|
|
@@ -8,5 +8,5 @@ export declare const _nodeProfilingIntegration: () => ProfilingIntegration<NodeC
|
|
|
8
8
|
* contains a profile on it's metadata. If that is the case, we create a profiling event envelope
|
|
9
9
|
* and delete the profile from the transaction metadata.
|
|
10
10
|
*/
|
|
11
|
-
export declare const nodeProfilingIntegration: () => import("@sentry/
|
|
11
|
+
export declare const nodeProfilingIntegration: () => import("@sentry/core").Integration;
|
|
12
12
|
//# sourceMappingURL=integration.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { CustomSamplingContext, Span } from '@sentry/core';
|
|
1
2
|
import { NodeClient } from '@sentry/node';
|
|
2
|
-
import { CustomSamplingContext, Span } from '@sentry/types';
|
|
3
3
|
import { RawThreadCpuProfile } from './types';
|
|
4
4
|
export declare const MAX_PROFILE_DURATION_MS: number;
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Client, ContinuousThreadCpuProfile, DebugImage, DsnComponents, Envelope, Event, EventEnvelopeHeaders, Profile, ProfileChunk, ProfileChunkEnvelope, SdkInfo, ThreadCpuProfile } from '@sentry/
|
|
1
|
+
import { Client, ContinuousThreadCpuProfile, DebugImage, DsnComponents, Envelope, Event, EventEnvelopeHeaders, Profile, ProfileChunk, ProfileChunkEnvelope, SdkInfo, ThreadCpuProfile } from '@sentry/core';
|
|
2
2
|
import { RawChunkCpuProfile, RawThreadCpuProfile } from './types';
|
|
3
3
|
export declare const PROFILER_THREAD_ID_STRING: string;
|
|
4
4
|
export declare const PROFILER_THREAD_NAME: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/profiling-node",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.43.0",
|
|
4
4
|
"description": "Official Sentry SDK for Node.js Profiling",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/profiling-node",
|
|
@@ -75,9 +75,8 @@
|
|
|
75
75
|
"test": "cross-env SENTRY_PROFILER_BINARY_DIR=lib jest --config jest.config.js"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@sentry/core": "8.
|
|
79
|
-
"@sentry/node": "8.
|
|
80
|
-
"@sentry/types": "8.41.0",
|
|
78
|
+
"@sentry/core": "8.43.0",
|
|
79
|
+
"@sentry/node": "8.43.0",
|
|
81
80
|
"detect-libc": "^2.0.2",
|
|
82
81
|
"node-abi": "^3.61.0"
|
|
83
82
|
},
|
|
@@ -86,8 +85,7 @@
|
|
|
86
85
|
"@types/node-abi": "^3.0.3",
|
|
87
86
|
"clang-format": "^1.8.0",
|
|
88
87
|
"cross-env": "^7.0.3",
|
|
89
|
-
"node-gyp": "^9.4.1"
|
|
90
|
-
"typescript": "^4.9.5"
|
|
88
|
+
"node-gyp": "^9.4.1"
|
|
91
89
|
},
|
|
92
90
|
"volta": {
|
|
93
91
|
"extends": "../../package.json"
|
|
@@ -62,6 +62,7 @@ const NODE_TO_ABI = {
|
|
|
62
62
|
16: '93',
|
|
63
63
|
18: '108',
|
|
64
64
|
20: '115',
|
|
65
|
+
22: '127',
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
if (NODE) {
|
|
@@ -73,9 +74,13 @@ if (NODE) {
|
|
|
73
74
|
NODE = NODE_TO_ABI['18'];
|
|
74
75
|
} else if (NODE.startsWith('20')) {
|
|
75
76
|
NODE = NODE_TO_ABI['20'];
|
|
77
|
+
} else if (NODE.startsWith('22')) {
|
|
78
|
+
NODE = NODE_TO_ABI['22'];
|
|
76
79
|
} else {
|
|
77
80
|
ARGV_ERRORS.push(
|
|
78
|
-
|
|
81
|
+
`❌ Sentry: Invalid node version passed as argument, please make sure --target_node is a valid major node version. Supported versions are ${Object.keys(
|
|
82
|
+
NODE_TO_ABI,
|
|
83
|
+
).join(', ')}.`,
|
|
79
84
|
);
|
|
80
85
|
}
|
|
81
86
|
}
|