Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cad2f98

Browse files
committedApr 30, 2025·
feat: expose metrics from Blobs
1 parent 06b9093 commit cad2f98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/net_protocol.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use tracing::debug;
1919

2020
use crate::{
2121
downloader::{ConcurrencyLimits, Downloader, RetryConfig},
22+
metrics::Metrics,
2223
provider::EventSender,
2324
store::GcConfig,
2425
util::{
@@ -258,6 +259,10 @@ impl<S: crate::store::Store> Blobs<S> {
258259
&self.inner.store
259260
}
260261

262+
pub fn metrics(&self) -> &Arc<Metrics> {
263+
self.downloader().metrics()
264+
}
265+
261266
pub fn events(&self) -> &EventSender {
262267
&self.inner.events
263268
}

0 commit comments

Comments
 (0)
Please sign in to comment.