@sentry/profiling-node 8.36.0-beta.0 → 8.37.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/README.md CHANGED
@@ -305,7 +305,7 @@ In that case it is possible that the function name may end up being reported to
305
305
 
306
306
  No. All instances of the profiler are scoped per thread In practice, this means that starting a transaction on thread A
307
307
  and delegating work to thread B will only result in sample stacks being collected from thread A. That said, nothing
308
- should prevent you from starting a transaction on thread B concurrently which will result in two independant profiles
308
+ should prevent you from starting a transaction on thread B concurrently which will result in two independent profiles
309
309
  being sent to the Sentry backend. We currently do not do any correlation between such transactions, but we would be open
310
310
  to exploring the possibilities. Please file an issue if you have suggestions or specific use-cases in mind.
311
311
 
@@ -351,7 +351,7 @@ v8::CpuProfile *SentryProfile::Stop(Profiler *profiler) {
351
351
  v8::NewStringType::kNormal)
352
352
  .ToLocalChecked());
353
353
 
354
- // Remove the meemory sampler
354
+ // Remove the memory sampler
355
355
  profiler->measurements_ticker.remove_heap_listener(id, memory_sampler_cb);
356
356
  profiler->measurements_ticker.remove_cpu_listener(id, cpu_sampler_cb);
357
357
  // If for some reason stopProfiling was called with an invalid profile title
package/lib/cjs/index.js CHANGED
@@ -50,7 +50,7 @@ function importCppBindingsModule() {
50
50
  return require(`${binaryPath}.node`);
51
51
  }
52
52
 
53
- // We need the fallthrough so that in the end, we can fallback to the require dynamice require.
53
+ // We need the fallthrough so that in the end, we can fallback to the dynamic require.
54
54
  // This is for cases where precompiled binaries were not provided, but may have been compiled from source.
55
55
  if (platform === 'darwin') {
56
56
  if (arch === 'x64') {
@@ -531,7 +531,7 @@ function findProfiledTransactionsFromEnvelope(envelope) {
531
531
  const event = item[j];
532
532
 
533
533
  if (!event) {
534
- // Shouldnt happen, but lets be safe
534
+ // Shouldn't happen, but lets be safe
535
535
  continue;
536
536
  }
537
537
 
@@ -1170,13 +1170,16 @@ class ContinuousProfiler {constructor() { ContinuousProfiler.prototype.__init.ca
1170
1170
 
1171
1171
  /** Exported only for tests. */
1172
1172
  const _nodeProfilingIntegration = (() => {
1173
- if (DEBUG_BUILD && ![16, 18, 20, 22].includes(NODE_MAJOR)) {
1174
- utils.logger.warn(
1175
- `[Profiling] You are using a Node.js version that does not have prebuilt binaries (${NODE_VERSION}).`,
1176
- 'The @sentry/profiling-node package only has prebuilt support for the following LTS versions of Node.js: 16, 18, 20, 22.',
1177
- 'To use the @sentry/profiling-node package with this version of Node.js, you will need to compile the native addon from source.',
1178
- 'See: https://github.com/getsentry/sentry-javascript/tree/develop/packages/profiling-node#building-the-package-from-source',
1179
- );
1173
+ if (![16, 18, 20, 22].includes(NODE_MAJOR)) {
1174
+ utils.consoleSandbox(() => {
1175
+ // eslint-disable-next-line no-console
1176
+ console.warn(
1177
+ `[Sentry Profiling] You are using a Node.js version that does not have prebuilt binaries (${NODE_VERSION}).`,
1178
+ 'The @sentry/profiling-node package only has prebuilt support for the following LTS versions of Node.js: 16, 18, 20, 22.',
1179
+ 'To use the @sentry/profiling-node package with this version of Node.js, you will need to compile the native addon from source.',
1180
+ 'See: https://github.com/getsentry/sentry-javascript/tree/develop/packages/profiling-node#building-the-package-from-source',
1181
+ );
1182
+ });
1180
1183
  }
1181
1184
 
1182
1185
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/lib/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { _nullishCoalesce, _optionalChain, _optionalChainDelete } from '@sentry/utils';
2
2
  import { spanIsSampled, spanToJSON, defineIntegration, getRootSpan, getCurrentScope, getIsolationScope, getGlobalScope } from '@sentry/core';
3
- import { logger, GLOBAL_OBJ, parseSemver, forEachEnvelopeItem, createEnvelope, uuid4, dsnToString, LRUMap } from '@sentry/utils';
3
+ import { logger, GLOBAL_OBJ, parseSemver, forEachEnvelopeItem, createEnvelope, uuid4, dsnToString, LRUMap, consoleSandbox } from '@sentry/utils';
4
4
  import { platform as platform$1, arch as arch$1 } from 'node:os';
5
5
  import cjsPath, { resolve, join } from 'node:path';
6
6
  import { versions, env } from 'node:process';
@@ -58,7 +58,7 @@ function importCppBindingsModule() {
58
58
  return require(`${binaryPath}.node`);
59
59
  }
60
60
 
61
- // We need the fallthrough so that in the end, we can fallback to the require dynamice require.
61
+ // We need the fallthrough so that in the end, we can fallback to the dynamic require.
62
62
  // This is for cases where precompiled binaries were not provided, but may have been compiled from source.
63
63
  if (platform === 'darwin') {
64
64
  if (arch === 'x64') {
@@ -539,7 +539,7 @@ function findProfiledTransactionsFromEnvelope(envelope) {
539
539
  const event = item[j];
540
540
 
541
541
  if (!event) {
542
- // Shouldnt happen, but lets be safe
542
+ // Shouldn't happen, but lets be safe
543
543
  continue;
544
544
  }
545
545
 
@@ -1178,13 +1178,16 @@ class ContinuousProfiler {constructor() { ContinuousProfiler.prototype.__init.ca
1178
1178
 
1179
1179
  /** Exported only for tests. */
1180
1180
  const _nodeProfilingIntegration = (() => {
1181
- if (DEBUG_BUILD && ![16, 18, 20, 22].includes(NODE_MAJOR)) {
1182
- logger.warn(
1183
- `[Profiling] You are using a Node.js version that does not have prebuilt binaries (${NODE_VERSION}).`,
1184
- 'The @sentry/profiling-node package only has prebuilt support for the following LTS versions of Node.js: 16, 18, 20, 22.',
1185
- 'To use the @sentry/profiling-node package with this version of Node.js, you will need to compile the native addon from source.',
1186
- 'See: https://github.com/getsentry/sentry-javascript/tree/develop/packages/profiling-node#building-the-package-from-source',
1187
- );
1181
+ if (![16, 18, 20, 22].includes(NODE_MAJOR)) {
1182
+ consoleSandbox(() => {
1183
+ // eslint-disable-next-line no-console
1184
+ console.warn(
1185
+ `[Sentry Profiling] You are using a Node.js version that does not have prebuilt binaries (${NODE_VERSION}).`,
1186
+ 'The @sentry/profiling-node package only has prebuilt support for the following LTS versions of Node.js: 16, 18, 20, 22.',
1187
+ 'To use the @sentry/profiling-node package with this version of Node.js, you will need to compile the native addon from source.',
1188
+ 'See: https://github.com/getsentry/sentry-javascript/tree/develop/packages/profiling-node#building-the-package-from-source',
1189
+ );
1190
+ });
1188
1191
  }
1189
1192
 
1190
1193
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"type":"module","version":"8.36.0-beta.0","sideEffects":false}
1
+ {"type":"module","version":"8.37.0","sideEffects":false}
@@ -1 +1 @@
1
- {"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../src/integration.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAA+C,oBAAoB,EAAQ,MAAM,eAAe,CAAC;AA+Z7G,+BAA+B;AAC/B,eAAO,MAAM,yBAAyB,QAAQ,qBAAqB,UAAU,CA2CnD,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,2CAA+C,CAAC"}
1
+ {"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../src/integration.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAA+C,oBAAoB,EAAQ,MAAM,eAAe,CAAC;AA+Z7G,+BAA+B;AAC/B,eAAO,MAAM,yBAAyB,QAAQ,qBAAqB,UAAU,CA8CnD,CAAC;AAE3B;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,2CAA+C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/profiling-node",
3
- "version": "8.36.0-beta.0",
3
+ "version": "8.37.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,10 +75,10 @@
75
75
  "test": "cross-env SENTRY_PROFILER_BINARY_DIR=lib jest --config jest.config.js"
76
76
  },
77
77
  "dependencies": {
78
- "@sentry/core": "8.36.0-beta.0",
79
- "@sentry/node": "8.36.0-beta.0",
80
- "@sentry/types": "8.36.0-beta.0",
81
- "@sentry/utils": "8.36.0-beta.0",
78
+ "@sentry/core": "8.37.0",
79
+ "@sentry/node": "8.37.0",
80
+ "@sentry/types": "8.37.0",
81
+ "@sentry/utils": "8.37.0",
82
82
  "detect-libc": "^2.0.2",
83
83
  "node-abi": "^3.61.0"
84
84
  },
@@ -1,4 +1,4 @@
1
- // This is a build scripts, so some logging is desireable as it allows
1
+ // This is a build script, so some logging is desirable as it allows
2
2
  // us to follow the code path that triggered the error.
3
3
  /* eslint-disable no-console */
4
4
  const fs = require('fs');
@@ -1,4 +1,4 @@
1
- // This is a build scripts, so some logging is desireable as it allows
1
+ // This is a build script, so some logging is desirable as it allows
2
2
  // us to follow the code path that triggered the error.
3
3
  /* eslint-disable no-console */
4
4
  const fs = require('fs');
@@ -1,6 +1,6 @@
1
1
  #! /usr/bin/env node
2
2
 
3
- // This is a build scripts, so some logging is desireable as it allows
3
+ // This is a build script, so some logging is desirable as it allows
4
4
  // us to follow the code path that triggered the error.
5
5
  /* eslint-disable no-console */
6
6
  const fs = require('fs');
@@ -88,7 +88,7 @@ if (!SOURCE_DIR) {
88
88
 
89
89
  if (!PLATFORM && !ARCH && !STDLIB) {
90
90
  ARGV_ERRORS.push(
91
- `❌ Sentry: Missing argument values, pruning requires either --target_platform, --target_arch or --targer_stdlib to be passed as argument values.\n Example: sentry-prune-profiler-binaries --target_platform=linux --target_arch=x64 --target_stdlib=glibc\n
91
+ `❌ Sentry: Missing argument values, pruning requires either --target_platform, --target_arch or --target_stdlib to be passed as argument values.\n Example: sentry-prune-profiler-binaries --target_platform=linux --target_arch=x64 --target_stdlib=glibc\n
92
92
  If you are unsure about the execution environment, you can opt to skip some values, but at least one value must be passed.`,
93
93
  );
94
94
  }