Skip to content

Commit

Permalink
fix: set default additionalDimensions to prevent
Browse files Browse the repository at this point in the history
  • Loading branch information
kristina committed Jul 10, 2023
1 parent 6df693a commit 56ab15a
Show file tree
Hide file tree
Showing 3 changed files with 1,200 additions and 1,048 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Metric.prototype.put = function(...args) {
return this._put(...args);
};

Metric.prototype._put = function(value, metricName, units, additionalDimensions) {
Metric.prototype._put = function(value, metricName, units, additionalDimensions = []) {
var self = this;
// Only publish if we are enabled
if (self.options.enabled) {
Expand Down
Loading

0 comments on commit 56ab15a

Please sign in to comment.