Skip to content

Commit

Permalink
feat(plugins)(datadog): add a datadog tag for the route name to each …
Browse files Browse the repository at this point in the history
…metric
  • Loading branch information
tysoekong authored Sep 27, 2024
1 parent 22f9497 commit dd625a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/plugins/datadog/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd625a6

Please sign in to comment.