Add RecentItems metrics (#20484)
This commit is contained in:
parent
785fcb63f5
commit
e13ed8a627
|
@ -207,6 +207,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),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue