Skip to content

Commit

Permalink
Specify if archive size datapoint is for full or incremental snapshots (
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo committed Mar 26, 2022
1 parent 5e08701 commit 31b707b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions runtime/src/snapshot_utils.rs
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 31b707b

Please sign in to comment.