Add RecentItems metrics (#20484) (#20487)

(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:31 -06:00
committed by GitHub
parent e4aecd9320
commit 70c9ca061f

View File

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