Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow multiple circuits to aggregate stats #140

Merged
merged 12 commits into from
Mar 18, 2018

Conversation

lance
Copy link
Member

@lance lance commented Jan 30, 2018

If a user creates multiple circuits in the same process, they should aggregate
their stats in the Hystrix stream.

Fixes: #125
Ref: #124
Connects: #125

@coveralls
Copy link

coveralls commented Jan 30, 2018

Coverage Status

Coverage increased (+0.2%) to 99.653% when pulling 6cfe7df on 125-aggregated-hystrix-stats into e792588 on master.


hystrixStats.getHystrixStream().pipe(response);
});
app.use('/hystrix.stream', require('./hystrix-stream.js')(circuitBreaker));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think you need the .js extension here

index.js Outdated
@@ -45,6 +45,8 @@
*/
circuitBreaker.promisify = require('./lib/promisify');

circuitBreaker.stats = require('./lib/hystrix-stats.js').stream;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as other comment about the extension

@lance lance force-pushed the 125-aggregated-hystrix-stats branch from 7b2c97d to 3755cb6 Compare March 5, 2018 22:33
@lance lance merged commit ba71840 into master Mar 18, 2018
@helio-frota helio-frota deleted the 125-aggregated-hystrix-stats branch July 28, 2020 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants