Add new event to read data from server

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2024-11-08 17:42:37 +03:00
parent 9e55056842
commit 7974eb9857

View file

@ -822,6 +822,7 @@ func (c *clientWrapper) objectPutServerCut(ctx context.Context, prm PrmObjectPut
span.AddEvent("reading single data chunk")
n, err = prm.payload.Read(buf)
if n > 0 {
span.AddEvent("single data chunk has been read")
start = time.Now()
successWrite := wObj.WritePayloadChunk(ctx, buf[:n])
c.incRequests(time.Since(start), methodObjectPut)