changeset 4596:c406e4bf7ee5

mod_prometheus: Revert part of previous commit Accidentally added one too many of these asserts when adding to every module that used get_stats. This one does work with openmetrics already!
author Kim Alvefur <zash@zash.se>
date Sun, 20 Jun 2021 13:54:23 +0200
parents bac3dae031ee
children c858c76d0845
files mod_prometheus/mod_prometheus.lua
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_prometheus/mod_prometheus.lua	Sat Jun 19 12:55:14 2021 +0200
+++ b/mod_prometheus/mod_prometheus.lua	Sun Jun 20 13:54:23 2021 +0200
@@ -17,8 +17,6 @@
 local get_metric_registry = statsman.get_metric_registry;
 local collect = statsman.collect;
 
-assert(get_stats, "not compatible with trunk based on openmetrics");
-
 local function escape(text)
 	return text:gsub("\\", "\\\\"):gsub("\"", "\\\""):gsub("\n", "\\n");
 end