Add RecentItems metrics (#20484) (#20486)

(cherry picked from commit e13ed8a627)

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
mergify[bot]
2021-10-06 16:51:19 -06:00
committed by GitHub
parent aa5e23799f
commit e012a05b08

View File

@ -211,6 +211,12 @@ impl RecentItems {
.checked_sub(item.len()) .checked_sub(item.len())
.expect("total bytes underflow"); .expect("total bytes underflow");
} }
datapoint_info!(
"rpc_subscriptions_recent_items",
("num", self.queue.len(), i64),
("total_bytes", self.total_bytes, i64),
);
} }
} }