I'm using Kong 3.3.0 and i need a DNS resolve time to give us more visibility breakdown latency.
i already added my code to add this in my environment.
This is the example:
code:
if ngx_ctx.KONG_UPSTREAM_DNS_END_AT and ngx_ctx.KONG_UPSTREAM_DNS_START then
local upstream_dns_time = ngx_ctx.KONG_UPSTREAM_DNS_END_AT - ngx_ctx.KONG_UPSTREAM_DNS_START
request_span:set_tag("dns.resolve_time_start", ngx_ctx.KONG_UPSTREAM_DNS_START)
request_span:set_tag("dns.resolve_time_end_at", ngx_ctx.KONG_UPSTREAM_DNS_END_AT)
request_span:set_tag("dns.resolve_time", upstream_dns_time)
end
I'm using Kong 3.3.0 and i need a DNS resolve time to give us more visibility breakdown latency.
i already added my code to add this in my environment. This is the example:
code: