
Security News
6 AppSec CTOs Debate Open Source Supply Chain Security at Black Hat
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.
@sentry/node-native
Advanced tools
# Using yarn
yarn add @sentry/node @sentry/node-native
# Using npm
npm install --save @sentry/node @sentry/node-native
eventLoopBlockIntegrationThe eventLoopBlockIntegration can be used to monitor for blocked event loops in
all threads of a Node.js application.
If you instrument your application via the Node.js --import flag, Sentry will
be started and this instrumentation will be automatically applied to all worker
threads.
instrument.mjs
import * as Sentry from '@sentry/node';
import { eventLoopBlockIntegration } from '@sentry/node-native';
Sentry.init({
dsn: '__YOUR_DSN__',
// Capture stack traces when the event loop is blocked for more than 500ms
integrations: [eventLoopBlockIntegration({ threshold: 500 })],
});
app.mjs
import { Worker } from 'worker_threads';
const worker = new Worker(new URL('./worker.mjs', import.meta.url));
// This main thread will be monitored for blocked event loops
worker.mjs
// This worker thread will also be monitored for blocked event loops too
Start your application:
node --import instrument.mjs app.mjs
If a thread is blocked for more than the configured threshold, stack traces will be captured for all threads and sent to Sentry.
FAQs
Native Tools for the Official Sentry Node.js SDK
The npm package @sentry/node-native receives a total of 340,920 weekly downloads. As such, @sentry/node-native popularity was classified as popular.
We found that @sentry/node-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Socket CTO Ahmad Nassri joins AppSec leaders at Black Hat to discuss active malware, package manager risks, and software supply chain defense.

Research
/Security News
Thirteen malicious Packagist themes expose visitors on unpatched iPhones to a WebKit-to-kernel exploit chain that steals device data and wallet seeds.

Research
/Security News
Ten malicious OpenAPI React Query Codegen versions were published to npm in the Mini Shai-Hulud attack, all with valid provenance.