
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@santry/node
Advanced tools
Thanks for BoostCamp2020

clone project of sentry
npm install @santry/node
After generating an error, place the function in the catch.
const { init, captureError, captureMessage, setContext } = require('@santry/node');
const dsn = '[token]@[url]';
init(dsn);
const testError = () => {
try {
throw new Error('testing Error');
// If you have any messages you want to collect, please collect them as "captureMessage".
captureMessage("hello I'm Hera");
} catch (error) {
// Collect errors with captureError.
captureError(error);
}
};
testError();
Use errorHandler function as middleware.
// All controllers should live here
const express = require('express');
const {
init,
errorHandler,
captureMessage,
setContext,
} = require('@santry/node');
const app = express();
const dsn = '[dsn]@[url]';
init(dsn, {
traceSampleRate: 1,
release: 'santry@0.0.1',
environment: 'production',
unhandledRejectionLevel: 'critical',
uncaughtExceptionLevel: 'warning',
});
app.get('/', function rootHandler(req, res) {
res.end('Hello world!');
});
app.post('/debug-santry', function mainHandler(req, res) {
setContext('myInfo', {
name: 'Hera',
age: 26,
});
captureMessage("hello I'm Hera");
throw new Error('My second Santry error get!');
});
// The error handler must be before any other error middleware and after all controllers
app.use(errorHandler());
// Optional fallthrough error handler
app.use(function onError(err, req, res, next) {
res.statusCode = 500;
res.end('good santry!');
});
app.listen(3000);
If you want to use functions, use it first.
Errors can be collected.
Set context of error or mesaage
Error collecting function of Express Middleware
FAQs
Santry for node
The npm package @santry/node receives a total of 6 weekly downloads. As such, @santry/node popularity was classified as not popular.
We found that @santry/node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.