Skip to content

Commit

Permalink
Add RecentItems metrics (solana-labs#20484)
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots authored Oct 6, 2021
1 parent 785fcb6 commit e13ed8a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rpc/src/rpc_subscriptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
);
}
}

Expand Down

0 comments on commit e13ed8a

Please sign in to comment.