
Product
Go Support Is Now Generally Available
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
@ansaro/errors
Advanced tools
Report errors to Sentry
yarn add @ansaro/errors
Set environment variable SENTRY_DSN
to your project's client key (DSN).
reportError
is an asynchronous function that takes two arguments:
Error
the error to reportoptions
an object of optional settingsconst { reportError } = require("@ansaro/errors");
async function() {
try {
...
} catch(ex) {
await reportError(ex, {
tags: {
service: "name-of-service"
}
})
}
}
FAQs
Report errors to Sentry
We found that @ansaro/errors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.
Security News
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.