From 17ebe7af9023a60cf24c61274af093420c2ff98b Mon Sep 17 00:00:00 2001 From: Antoine Jacquemin Date: Tue, 18 Jun 2024 15:27:40 +0200 Subject: [PATCH] Update kong/plugins/prometheus/handler.lua Co-authored-by: Wangchong Zhou --- kong/plugins/prometheus/handler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kong/plugins/prometheus/handler.lua b/kong/plugins/prometheus/handler.lua index 2f79312d83a8..3666b406f009 100644 --- a/kong/plugins/prometheus/handler.lua +++ b/kong/plugins/prometheus/handler.lua @@ -54,7 +54,7 @@ function PrometheusHandler:log(conf) serialized.latencies = message.latencies end - if conf.ai_metrics and message.ai then + if conf.ai_metrics then serialized.ai_metrics = message.ai end