Changeset

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
parents 2685:cd5781ca782d
children 2687:5f0b755b42a3
files mod_measure_storage/mod_measure_storage.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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");