You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/01/19 14:23:21 UTC
[apisix] branch master updated: chore: remove redundant latency code from datadog plugin (#6147)
This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 66f66d4 chore: remove redundant latency code from datadog plugin (#6147)
66f66d4 is described below
commit 66f66d499ab7facf51a3251e9c1739c8b7fabd80
Author: Bisakh <bi...@gmail.com>
AuthorDate: Wed Jan 19 19:53:16 2022 +0530
chore: remove redundant latency code from datadog plugin (#6147)
---
apisix/plugins/datadog.lua | 2 --
1 file changed, 2 deletions(-)
diff --git a/apisix/plugins/datadog.lua b/apisix/plugins/datadog.lua
index 630d4f1..19a2cd6 100644
--- a/apisix/plugins/datadog.lua
+++ b/apisix/plugins/datadog.lua
@@ -18,7 +18,6 @@ local core = require("apisix.core")
local plugin = require("apisix.plugin")
local bp_manager_mod = require("apisix.utils.batch-processor-manager")
local fetch_log = require("apisix.utils.log-util").get_full_log
-local latency_details = require("apisix.utils.log-util").latency_details_in_ms
local service_fetch = require("apisix.http.service").get
local ngx = ngx
local udp = ngx.socket.udp
@@ -111,7 +110,6 @@ end
function _M.log(conf, ctx)
local entry = fetch_log(ngx, {})
- entry.latency, entry.upstream_latency, entry.apisix_latency = latency_details(ctx)
entry.balancer_ip = ctx.balancer_ip or ""
entry.scheme = ctx.upstream_scheme or ""