Local and Remote hosts swapped in grid traces (#18574)

Local and Remote hosts swapped in grid trace

A bit counter-intuitive, but simple fix.
This commit is contained in:
Klaus Post 2023-12-01 08:04:08 -08:00 committed by GitHub
parent 109a9e3f35
commit 860fc200b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),