Skip to content

Commit

Permalink
Merge pull request #10 from statful/fix-system-stats-tags
Browse files Browse the repository at this point in the history
fix(TEL-NA): fixed system stats tags.
  • Loading branch information
mistic authored Oct 11, 2016
2 parents b26324e + 25adae3 commit ff29dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ function sendUncompressedMessage(options, message, logger) {
function sendFlushStats(self) {
if (self.systemStats) {
if (self.aggregatedBuffer.bufferSize > 0 && self.transport === 'api') {
self.put('buffer.flush_length', self.aggregatedBuffer.bufferSize, {agg: ['avg'], tags: {"buffer-type": 'aggregated'}});
self.put('buffer.flush_length', self.aggregatedBuffer.bufferSize, {agg: ['avg'], tags: {"buffer_type": 'aggregated'}});
}
if (self.nonAggregatedBuffer.bufferSize > 0) {
self.put('buffer.flush_length', self.nonAggregatedBuffer.bufferSize, {agg: ['avg'], tags: {"buffer-type": 'non-aggregated'}});
self.put('buffer.flush_length', self.nonAggregatedBuffer.bufferSize, {agg: ['avg'], tags: {"buffer_type": 'non-aggregated'}});
}
}
}
Expand Down

0 comments on commit ff29dea

Please sign in to comment.