Socket
Socket
Sign inDemoInstall

hot-shots

Package Overview
Dependencies
16
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.3.0 to 6.4.1

#CHANGES.md#

9

CHANGES.md
CHANGELOG
=========
## 6.4.1 (2019-9-19)
* @jfirebaugh Fix cacheDns option when obtaining host from DD_AGENT_HOST
## 6.4.0 (2019-6-28)
* @tghaas Add Node 12 support to uds protocol support
* @jhoch README clarifications
## 6.3.0 (2019-5-18)
* @paguillama Fix user defined tag example on README optional parameters
* @gabsn Initial support for uds protocol
* @bdeitte Updated and fixed up uds protcol support
* @bdeitte Updated and fixed up uds protocol support

@@ -9,0 +16,0 @@ ## 6.2.0 (2019-4-10)

2

lib/statsd.js

@@ -140,3 +140,3 @@ const dgram = require('dgram'),

} else if (options.cacheDns === true) {
dns.lookup(options.host, (err, address) => {
dns.lookup(this.host, (err, address) => {
if (err === null) {

@@ -143,0 +143,0 @@ self.host = address;

{
"name": "hot-shots",
"description": "Node.js client for StatsD, DogStatsD, and Telegraf",
"version": "6.3.0",
"version": "6.4.1",
"author": "Steve Ivy",

@@ -6,0 +6,0 @@ "types": "./types.d.ts",

@@ -49,3 +49,4 @@ # hot-shots

All StatsD methods other than event and close have the same API:
### StatsD methods
All StatsD methods other than `event`, `close`, and `check` have the same API:
* `name`: Stat name `required`

@@ -59,2 +60,3 @@ * `value`: Stat value `required except in increment/decrement where it defaults to 1/-1 respectively`

#### `close`
The close method has the following API:

@@ -64,2 +66,3 @@

#### `event`
The event method has the following API:

@@ -79,2 +82,3 @@

#### `check`
The check method has the following API:

@@ -93,3 +97,7 @@

var StatsD = require('hot-shots'),
client = new StatsD({ port: 8020, globalTags: { env: process.env.NODE_ENV }, errorHandler: errorHandler });
client = new StatsD({
port: 8020,
globalTags: { env: process.env.NODE_ENV },
errorHandler: errorHandler,
});

@@ -124,3 +132,4 @@ // Timing: sends a timing command with the specified milliseconds

// Distribution: Tracks the statistical distribution of a set of values across your infrastructure. (DataDog v6)
// Distribution: Tracks the statistical distribution of a set of values across your infrastructure.
// (DataDog v6)
client.distribution('my_distribution', 42);

@@ -150,3 +159,4 @@

// Tags, this will add user-defined tags to the data (DataDog and Telegraf only)
// Tags, this will add user-defined tags to the data
// (DataDog and Telegraf only)
client.histogram('my_histogram', 42, ['foo', 'bar']);

@@ -225,8 +235,7 @@

The 'uds' option as the protocol is to support [Unix Domain Sockets for Datadog](https://docs.datadoghq.com/developers/dogstatsd/unix_socket/). It has the following limitations on where it will work:
- Does not work on Windows
- Does not currently work on Node 12
- Systems where 'node-gyp' works. If you don't know what this is, this
The 'uds' option as the protocol is to support [Unix Domain Sockets for Datadog](https://docs.datadoghq.com/developers/dogstatsd/unix_socket/). It has the following limitations:
- It only works where 'node-gyp' works. If you don't know what this is, this
is probably fine for you. If you had an troubles with libraries that
you 'node-gyp' before, you will have problems here as well.
- It does not work on Windows

@@ -233,0 +242,0 @@ The above will cause the underlying library that is used, unix-dgram,

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc