Add RecentItems metrics (#20484)

This commit is contained in:
Tyera Eulberg 2021-10-06 16:16:56 -06:00 committed by GitHub
parent 785fcb63f5
commit e13ed8a627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -207,6 +207,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),
);
}
}