Skip to content

Commit

Permalink
fix(events): Include timeout in stats
Browse files Browse the repository at this point in the history
  • Loading branch information
lance committed Nov 1, 2016
1 parent d1ce52b commit abbdb61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/status.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ class Status {
this.successes = 0;
this.rejects = 0;
this.fires = 0;
this.timeouts = 0;
this[CIRCUIT_BREAKER] = circuit;
circuit.on('success', () => this.successes++);
circuit.on('failure', () => this.failures++);
circuit.on('fallback', () => this.fallbacks++);
circuit.on('timeout', () => this.timeouts++);
circuit.on('fire', () => this.fires++);
circuit.on('reject', () => this.rejects++);
}
Expand Down

0 comments on commit abbdb61

Please sign in to comment.