diff --git a/objstore.go b/objstore.go index 5bcc55f1..20723704 100644 --- a/objstore.go +++ b/objstore.go @@ -594,7 +594,7 @@ func (b *metricBucket) Upload(ctx context.Context, name string, r io.Reader) err b.ops.WithLabelValues(op).Inc() trc := newTimingReadCloser( - io.NopCloser(r), + NopCloserWithSize(r), op, b.opsDuration, b.opsFailures,