mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-28 18:10:28 +00:00
Observe blob size in GetBlob as well.
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user