Observe blob size in GetBlob as well.

This commit is contained in:
Catherine
2025-09-30 02:54:53 +00:00
parent 396cabd43b
commit 764b4cd9f5

View File

@@ -55,6 +55,7 @@ func (backend *observedBackend) GetBlob(
) {
span, ctx := ObserveFunction(ctx, "GetBlob", "blob.name", name)
if reader, size, mtime, err = backend.inner.GetBlob(ctx, name); err == nil {
ObserveData(ctx, "blob.size", size)
blobsRetrievedCount.Inc()
blobsRetrievedBytes.Add(float64(size))
}