Socket
Socket
Sign inDemoInstall

@sentry/profiling-node

Package Overview
Dependencies
Maintainers
12
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/profiling-node - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

9

lib/hubextensions.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc