Software /
code /
prosody-modules
Diff
mod_measure_storage/mod_measure_storage.lua @ 2686:39cb2a51e779
mod_measure_storage: Pass the measurement type, fixes traceback
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 14 Apr 2017 00:00:56 +0200 |
parent | 2297:992e40dab31d |
child | 2693:04ae5b45e6c7 |
line wrap: on
line diff
--- a/mod_measure_storage/mod_measure_storage.lua Thu Apr 13 22:47:09 2017 +0200 +++ b/mod_measure_storage/mod_measure_storage.lua Fri Apr 14 00:00:56 2017 +0200 @@ -14,7 +14,7 @@ else metric_name = store_name.."_"..store_type.."_"..method_name; end - local measure_operation_started = module:measure(metric_name, metric_tags); + local measure_operation_started = module:measure(metric_name, "times", metric_tags); return function (...) module:log("debug", "Measuring storage operation %s (%s)", metric_name, metric_tags or "no tags");