Baoyuantop commented on code in PR #11943:
URL: https://github.com/apache/apisix/pull/11943#discussion_r2220818493


##########
apisix/plugins/datadog.lua:
##########
@@ -80,25 +107,32 @@ local function generate_tag(entry, const_tags)
         tags = {}
     end
 
-    if entry.route_id and entry.route_id ~= "" then
-        core.table.insert(tags, "route_name:" .. entry.route_id)
+    if entry.constant_tags and #entry.constant_tags > 0 then
+        for _, tag in pairs(entry.constant_tags) do

Review Comment:
   should use ipairs to iterate over the array.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to