@sentry/profiling-node
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -81,6 +81,11 @@ "use strict"; | ||
function profilingWrappedTransactionFinish() { | ||
// @ts-expect-error profile is not a part of sdk metadata so we expect error until it becomes part of the official SDK. | ||
// onProfileHandler should always return the same profile even if this is called multiple times. | ||
// Always call onProfileHandler to ensure stopProfiling is called and the timeout is cleared. | ||
transaction.setMetadata({ profile: onProfileHandler() }); | ||
const profile = onProfileHandler(); | ||
// If we receive a profile, set the logging mode that was used as a tag | ||
if (profile) { | ||
transaction.setTag('profiler_logging_mode', profile.profiler_logging_mode); | ||
} | ||
// @ts-expect-error profile is not a part of sdk metadata so we expect error until it becomes part of the official SDK. | ||
transaction.setMetadata({ profile }); | ||
return originalFinish(); | ||
@@ -87,0 +92,0 @@ } |
{ | ||
"name": "@sentry/profiling-node", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Sampling based nodejs profiler.", | ||
@@ -48,9 +48,9 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@sentry/hub": "^7.13.0", | ||
"@sentry/node": "^7.13.0", | ||
"@sentry/tracing": "^7.13.0", | ||
"@sentry/types": "^7.13.0", | ||
"@sentry/utils": "^7.13.0", | ||
"nan": "^2.16.0", | ||
"node-gyp": "^9.1.0" | ||
"@sentry/hub": "^7.16.0", | ||
"@sentry/node": "^7.16.0", | ||
"@sentry/tracing": "^7.16.0", | ||
"@sentry/types": "^7.16.0", | ||
"@sentry/utils": "^7.16.0", | ||
"nan": "^2.17.0", | ||
"node-gyp": "^9.3.0" | ||
}, | ||
@@ -57,0 +57,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45204
501
Updated@sentry/hub@^7.16.0
Updated@sentry/node@^7.16.0
Updated@sentry/tracing@^7.16.0
Updated@sentry/types@^7.16.0
Updated@sentry/utils@^7.16.0
Updatednan@^2.17.0
Updatednode-gyp@^9.3.0