From f71d45fb5991df2e972b05a850ccf01f6357e622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandor=20Sz=C3=BCcs?= Date: Thu, 9 Apr 2026 22:25:42 +0200 Subject: [PATCH] fix: proxy client trace events should all use the same time units MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit track all in usec to be consistent Signed-off-by: Sandor Szücs --- proxy/proxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/proxy.go b/proxy/proxy.go index e326f80ca2..df29bd73db 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -1872,13 +1872,13 @@ func injectClientTraceByTag(ctx *context, t time.Time, req *http.Request, span o span.SetTag(ClientTraceDNS, time.Since(ctx.clientTraceTime).Microseconds()) }, ConnectDone: func(string, string, error) { - span.SetTag(ClientTraceConnect, time.Since(ctx.clientTraceTime).Milliseconds()) + span.SetTag(ClientTraceConnect, time.Since(ctx.clientTraceTime).Microseconds()) }, TLSHandshakeDone: func(tls.ConnectionState, error) { span.SetTag(ClientTraceTLS, time.Since(ctx.clientTraceTime).Microseconds()) }, GotConn: func(httptrace.GotConnInfo) { - span.SetTag(ClientTraceGetConn, time.Since(ctx.clientTraceTime).Nanoseconds()) + span.SetTag(ClientTraceGetConn, time.Since(ctx.clientTraceTime).Microseconds()) }, Got100Continue: func() { span.SetTag(ClientTraceGot100Continue, time.Since(ctx.clientTraceTime).Microseconds())