From dd625a6817bdd0de79b8c9aab20069e6f52fb7be Mon Sep 17 00:00:00 2001 From: Jack Tysoe <91137069+tysoekong@users.noreply.github.com> Date: Fri, 27 Sep 2024 17:58:59 +0100 Subject: [PATCH] feat(plugins)(datadog): add a datadog tag for the route name to each metric --- kong/plugins/datadog/handler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kong/plugins/datadog/handler.lua b/kong/plugins/datadog/handler.lua index ed7034745ece..f4f5e06b35e1 100644 --- a/kong/plugins/datadog/handler.lua +++ b/kong/plugins/datadog/handler.lua @@ -32,7 +32,7 @@ local function compose_tags(service_name, status, consumer_id, tags, conf, route local result = { (conf.service_name_tag or "name") .. ":" .. service_name, (conf.status_tag or "status") .. ":" .. status, - route_name and route_name ~= "" and ((conf.route_name_tag or "route") .. ":" .. route_name) or nil + route_name and route_name ~= "" and ((conf.route_name_tag or "route") .. ":" .. route_name) } if consumer_id ~= nil then