Specify if archive size datapoint is for full or incremental snapshots (#23941)

This commit is contained in:
Brooks Prumo 2022-03-26 12:29:13 -05:00 committed by GitHub
parent 5e08701189
commit 31b707b625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 2 deletions

View File

@ -373,11 +373,20 @@ pub fn archive_snapshot_package(
timer.as_ms(),
metadata.len()
);
datapoint_info!(
"snapshot-package",
"archive-snapshot-package",
("slot", snapshot_package.slot(), i64),
("duration_ms", timer.as_ms(), i64),
("size", metadata.len(), i64)
(
if snapshot_package.snapshot_type.is_full_snapshot() {
"full-snapshot-archive-size"
} else {
"incremental-snapshot-archive-size"
},
metadata.len(),
i64
),
);
Ok(())
}