New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@sentry/node-native

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/node-native

Native Tools for the Official Sentry Node.js SDK

latest
Source
npmnpm
Version
10.48.0
Version published
Weekly downloads
120K
-19.12%
Maintainers
1
Weekly downloads
 
Created
Source

Sentry

Native Tools for the Official Sentry Node.js SDK

npm version npm dm npm dt

Installation

# Using yarn
yarn add @sentry/node @sentry/node-native

# Using npm
npm install --save @sentry/node @sentry/node-native

eventLoopBlockIntegration

The 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

Package last updated on 09 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts