Skip to content

Commit

Permalink
fix(trace): check is serviceId is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
gergelyke committed Oct 2, 2015
1 parent 190a2da commit 2f10f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reporters/trace/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ TraceReporter.prototype.setEventBus = function (eventBus) {
};

TraceReporter.prototype.sendMetrics = function (data) {
if (!this.serviceId) {
if (isNaN(this.serviceId)) {
return debug('Service id not present, cannot send metrics');
}

Expand Down

0 comments on commit 2f10f5b

Please sign in to comment.