You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The arity-3 version of metrics.timers/deftimer tries to call timer with 3 arguments, which is not implemented. I guess it should either be dropped or call timer-with-reservoir. On a related note, is there a reason why timer passes the title through metrics.core/metric-name while timer-with-reservoir doesn't?
The text was updated successfully, but these errors were encountered:
michaelklishin
changed the title
deftimer crashes when invoked with 3 arguments
3-arity version of metrics.timers/timer is not implemented
Oct 27, 2016
@michaelklishin I'm not sure if an arity-3 version of metrics.timers/timer makes sense: callers would create a new reservoir in vain on every call but the first. I think deftimer should rather delegate to metrics.timers/timer-with-reservoir in this case. Regarding naming, I can certainly add the call to metric-name in timer-with-reservoir, but that would not be a backwards-compatible change. Duplicating the function just for the sake of keeping naming consistent in deftimer doesn't seem elegant either, though. Do you have any preference?
The arity-3 version of
metrics.timers/deftimer
tries to calltimer
with 3 arguments, which is not implemented. I guess it should either be dropped or calltimer-with-reservoir
. On a related note, is there a reason whytimer
passes the title throughmetrics.core/metric-name
whiletimer-with-reservoir
doesn't?The text was updated successfully, but these errors were encountered: