
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
sentry-node
Advanced tools
Node v0.10 compatible
A simple Node wrapper around Sentry API.
$ npm install sentry-node
$ npm test
var Sentry = require('sentry-node');
You can intialize sentry-node
by passing in a Sentry DSN:
var sentry = new Sentry('<your Sentry DSN>');
Or you can set it as an process.env
variable:
var sentry = new Sentry();
You can also pass in the config parameters as an object:
var sentry = new Sentry({
key: '<your sentry public key>',
secret: '<your sentry secret key>',
project_id: '<your sentry project id>'
});
sentry.error(err, message, logger, extra);
sentry.error(new Error("The error method expected an Error instance as first argument."), "Bad arguments to sentry-node:error method", '/sentry-node.coffee', {note: "to test sentry-node error method", version: "0.1.0"});
Error
, err.message
will be used for the smaller text that appears right under culprit
culprit
, big text that appears at the toperr.stack
sentry.message(message, logger, extra);
sentry.message("message", "/trial.coffee", {note: "to test sentry-node api", type: "message"});
FAQs
simple Node wrapper around Sentry API
The npm package sentry-node receives a total of 450 weekly downloads. As such, sentry-node popularity was classified as not popular.
We found that sentry-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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.