mod_measure_storage: Pass the measurement type, fixes traceback

Fri, 14 Apr 2017 00:00:56 +0200

author
Kim Alvefur <zash@zash.se>
date
Fri, 14 Apr 2017 00:00:56 +0200
changeset 2686
39cb2a51e779
parent 2685
cd5781ca782d
child 2687
5f0b755b42a3

mod_measure_storage: Pass the measurement type, fixes traceback

mod_measure_storage/mod_measure_storage.lua file | annotate | diff | comparison | revisions
--- 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");

mercurial