Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@shopify/statsd
Advanced tools
An opinionated StatsD client for Shopify Node.js servers and other StatsD utilities
@shopify/statsd
An opinionated StatsD client for Shopify Node.js servers and other StatsD utilities.
$ yarn add @shopify/statsd
Create a StatsD client with the following:
import {StatsDClient} from '@shopify/statsd';
const statsdClient = new StatsDClient({
host: 'some-statsd-host.com',
port: '8125',
prefix: 'AppName',
});
distribution
Tracks the statistical distribution of a set of values across your infrastructure.
statsdClient.distribution(
'navigationComplete',
100, // in milliseconds
['navigation', 'complete', 'performance'], // user-defined tags to go with the data
);
increment
Increments a stat by 1.
statsdClient.increment(
'myCounter',
['navigation', 'complete', 'performance'], // user-defined tags to go with the data
);
close
Close statsd client. This will ensure all stats are sent and stop statsd from doing anything more.
statsdClient.close();
FAQs
An opinionated StatsD client for Shopify Node.js servers and other StatsD utilities
We found that @shopify/statsd demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 24 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.