Comparing version 7.3.0 to 7.4.0
CHANGELOG | ||
========= | ||
## 7.4.0 (2020-4-3) | ||
* @MichaelSitter add tagPrefix and tagSeparator options | ||
## 7.3.0 (2020-4-1) | ||
@@ -5,0 +8,0 @@ * @marciopd Use Date.now() instead of new Date() |
@@ -53,2 +53,4 @@ const util = require('util'), | ||
this.suffix = options.suffix || ''; | ||
this.tagPrefix = options.tagPrefix || '#'; | ||
this.tagSeparator = options.tagSeparator || ','; | ||
this.mock = options.mock; | ||
@@ -272,3 +274,3 @@ this.globalTags = typeof options.globalTags === 'object' ? | ||
} else { | ||
message += `|#${mergedTags.join(',')}`; | ||
message += `|${this.tagPrefix}${mergedTags.join(this.tagSeparator)}`; | ||
} | ||
@@ -495,2 +497,4 @@ } | ||
port : parent.port, | ||
tagPrefix : parent.tagPrefix, | ||
tagSeparator : parent.tagSeparator, | ||
prefix : (options.prefix || '') + parent.prefix, // Child has its prefix prepended to parent's prefix | ||
@@ -497,0 +501,0 @@ suffix : parent.suffix + (options.suffix || ''), // Child has its suffix appended to parent's suffix |
{ | ||
"name": "hot-shots", | ||
"description": "Node.js client for StatsD, DogStatsD, and Telegraf", | ||
"version": "7.3.0", | ||
"version": "7.4.0", | ||
"author": "Steve Ivy", | ||
@@ -6,0 +6,0 @@ "types": "./types.d.ts", |
@@ -37,2 +37,4 @@ # hot-shots | ||
* `suffix`: What to suffix each stat name with `default: ''` | ||
* `tagPrefix`: Prefix tag list with character `default: '#'`. Note does not work with `telegraf` option. | ||
* `tagSeparator`: Separate tags with character `default: ','`. Note does not work with `telegraf` option. | ||
* `globalize`: Expose this StatsD instance globally. `default: false` | ||
@@ -39,0 +41,0 @@ * `cacheDns`: Caches dns lookup to *host* for *cacheDnsTtl*, only used |
@@ -26,2 +26,4 @@ import dgram = require("dgram"); | ||
useDefaultRoute?: boolean; | ||
tagPrefix?: string; | ||
tagSeparator?: string; | ||
udsGracefulErrorHandling?: boolean; | ||
@@ -28,0 +30,0 @@ udsGracefulRestartRateLimit?: number; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76056
1431
280