
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@github/failbot
Advanced tools
A Failbotg client for JavaScript.
This package is published to npm as @github/failbot
.
❯ npm install @github/failbot
const {Failbot, HTTPBackend, LogBackend} = require('@github/failbot')
const failbot = new Failbot({
app: 'my-cool-app',
backends: [new HTTPBackend({haystackURL: process.env.HAYSTACK_URL}), new LogBackend({log: console.log.bind(console)})]
})
try {
riskyThing()
} catch (error) {
failbot.report(error, {
extra: 'metadata',
can: 'be',
passed: 'as well'
})
}
In order to attribute reported exceptions to service catalog services, the catalog_service
tag is included in all exceptions reported via this library. Since all moda deployments have an OTEL_SERVICE_NAME
environment variable, catalog_service
is included in every failbot report payload as the value of OTEL_SERVICE_NAME
.
You should not need to override this value but, if you do, you can pass catalogService
to the Failbot
constructor: const failbot = new Failbot({app: 'my-app', serviceCatalog: 'my-catalog', backends: ...})
. Be aware that overriding this value may make it impossible for your team to receive alerts related to high volumes of exceptions.
FAQs
A Failbot client for JavaScript
The npm package @github/failbot receives a total of 4,023 weekly downloads. As such, @github/failbot popularity was classified as popular.
We found that @github/failbot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 20 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.