From 860fc200b00c192464105bc25c637a5349e86b24 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Fri, 1 Dec 2023 08:04:08 -0800 Subject: [PATCH] Local and Remote hosts swapped in grid traces (#18574) Local and Remote hosts swapped in grid trace A bit counter-intuitive, but simple fix. --- internal/grid/trace.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/grid/trace.go b/internal/grid/trace.go index cb8ad0938..f608d6fa4 100644 --- a/internal/grid/trace.go +++ b/internal/grid/trace.go @@ -90,7 +90,7 @@ func (c *muxClient) traceRoundtrip(ctx context.Context, t *tracer, h HandlerID, trace := madmin.TraceInfo{ TraceType: t.TraceType, FuncName: prefix + "." + h.String(), - NodeName: t.Local, + NodeName: t.Remote, Time: start, Duration: end.Sub(start), Path: t.Subroute, @@ -100,7 +100,7 @@ func (c *muxClient) traceRoundtrip(ctx context.Context, t *tracer, h HandlerID, Time: start, Proto: "grid", Method: "REQ", - Client: t.Remote, + Client: t.Local, Headers: nil, Path: t.Subroute, Body: []byte(body),