mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-02 12:07:35 +08:00
chore: remove redundant latency code from datadog plugin (#6147)
This commit is contained in:
parent
fadf5c270a
commit
66f66d499a
@ -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 ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user