Add sizes to traces (#19851)

added to storage and grid traces. Can provide more context for traces that aren't HTTP. Others may apply.
This commit is contained in:
Klaus Post
2024-05-31 22:17:37 -07:00
committed by GitHub
parent c5b3f5553f
commit e72429c79c
3 changed files with 46 additions and 36 deletions

View File

@@ -105,6 +105,7 @@ func (c *muxClient) traceRoundtrip(ctx context.Context, t *tracer, h HandlerID,
Duration: end.Sub(start),
Path: t.Subroute,
Error: errString,
Bytes: int64(len(req) + len(resp)),
HTTP: &madmin.TraceHTTPStats{
ReqInfo: madmin.TraceRequestInfo{
Time: start,