Mercurial > prosody-modules
diff mod_measure_storage/mod_measure_storage.lua @ 2702:caabb980d1d8
Merge commit
author | tmolitor <thilo@eightysoft.de> |
---|---|
date | Mon, 24 Apr 2017 20:57:23 +0200 |
parents | 04ae5b45e6c7 |
children |
line wrap: on
line diff
--- a/mod_measure_storage/mod_measure_storage.lua Mon Apr 24 20:56:56 2017 +0200 +++ b/mod_measure_storage/mod_measure_storage.lua Mon Apr 24 20:57:23 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"); @@ -43,7 +43,7 @@ local function hook_event(module) module:hook("store-opened", function(event) - event.store = wrap_store(module, event.store_name, event.store_type, event.store); + event.store = wrap_store(module, event.store_name, event.store_type or "keyval", event.store); end); end