Cannot use EWMA with Histogram
chrismikehogan opened this issue · 2 comments
chrismikehogan commented
const measured = require('measured');
const metrics = measured.createCollection();
const ewmaTimer = metrics.timer('perf.(algo=ewma).getModel', {
histogram: new measured.Histogram({
sample: new measured.ExponentiallyMovingWeightedAverage()
})
}).start()
ewmaTimer.end();
ewmaTimer.toJSON(); // fall down go boom
Am I misunderstanding how this is supposed to be used?
chrismikehogan commented
This issue might become a moot point once #28 is merged in
fieldju commented
Closing this issue, re-open if it is still valid.