aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-04 07:00:45 +0100
committerKim Alvefur <zash@zash.se>2019-01-04 07:00:45 +0100
commit1f80e42aa5522074c5fa09333307a1c3ce50dc58 (patch)
treec853f23ac48405d9b0abd30fdcca5685a54c179d /core/moduleapi.lua
parent401c48015c334a4664f369824f61f0c1a30d536b (diff)
downloadprosody-1f80e42aa5522074c5fa09333307a1c3ce50dc58.tar.gz
prosody-1f80e42aa5522074c5fa09333307a1c3ce50dc58.zip
core.moduleapi: Allow passing a config table trough :measure
Diffstat (limited to 'core/moduleapi.lua')
-rw-r--r--core/moduleapi.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 021db4c8..1212db5a 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -508,9 +508,9 @@ function api:open_store(name, store_type)
return require"core.storagemanager".open(self.host, name or self.name, store_type);
end
-function api:measure(name, stat_type)
+function api:measure(name, stat_type, conf)
local measure = require "core.statsmanager".measure;
- return measure(stat_type, "/"..self.host.."/mod_"..self.name.."/"..name);
+ return measure(stat_type, "/"..self.host.."/mod_"..self.name.."/"..name, conf);
end
function api:measure_object_event(events_object, event_name, stat_name)