
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.
@bonniernews/exp-metrics
Advanced tools
Simple bootstrapping of basic prometheus metrics for your express based application.
Simple wrapper of OpenTelemetry metrics with the same API as prom-client,
to make the transition from prom-client
easy, and also add functionality that
OpenTelemetry lacks.
inc([labels,] [value])
set([labels,] value)
inc([labels,] [value])
dec([labels,] [value])
observe([labels,] value)
npm install @bonniernews/exp-metrics
const expMetrics = require("@bonniernews/exp-metrics");
metrics = expMetrics("my-service-name", {
// optional overrides, see more below
});
const myCounter = metrics.counter({
name: "my_counter",
help: "My counter",
})
myCounter.inc(2);
myCounter.inc({ foo: "bar" }, 3);
See more in the prom-client documentation.
For overriding the default OpenTelemetry configuration, see the OpenTelemetry documentation
FAQs
Simple bootstrapping of basic prometheus metrics for your express based application.
The npm package @bonniernews/exp-metrics receives a total of 132 weekly downloads. As such, @bonniernews/exp-metrics popularity was classified as not popular.
We found that @bonniernews/exp-metrics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 35 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.