Skip to content

Commit

Permalink
remove METRICS var
Browse files Browse the repository at this point in the history
  • Loading branch information
juan518munoz committed Dec 13, 2024
1 parent c4b5b0b commit 4af1a20
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions core/node/da_dispatcher/src/da_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ impl DataAvailabilityDispatcher {

for batch in batches {
let dispatch_latency = METRICS.blob_dispatch_latency.start();
METRICS.blobs_pending_dispatch.inc_by(1);
let dispatch_response = retry(self.config.max_retries(), batch.l1_batch_number, || {
self.client
.dispatch_blob(batch.l1_batch_number.0, batch.pubdata.clone())
Expand Down Expand Up @@ -115,7 +114,6 @@ impl DataAvailabilityDispatcher {
.set(batch.l1_batch_number.0 as usize);
METRICS.blob_size.observe(batch.pubdata.len());
METRICS.blobs_dispatched.inc_by(1);
METRICS.blobs_pending_dispatch.dec_by(1);

tracing::info!(
"Dispatched a DA for batch_number: {}, pubdata_size: {}, dispatch_latency: {dispatch_latency_duration:?}",
Expand Down
2 changes: 0 additions & 2 deletions core/node/da_dispatcher/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ pub(super) struct DataAvailabilityDispatcherMetrics {
/// Buckets are bytes ranging from 1 KB to 16 MB, which has to satisfy all blob size values.
#[metrics(buckets = Buckets::exponential(1_024.0..=16.0 * 1_024.0 * 1_024.0, 2.0), unit = Unit::Bytes)]
pub blob_size: Histogram<usize>,
/// Amount of pending blobs to be dispatched.
pub blobs_pending_dispatch: Gauge<usize>,
/// Total number of blobs dispatched.
pub blobs_dispatched: Gauge<usize>,
/// Total number of blobs included.
Expand Down

0 comments on commit 4af1a20

Please sign in to comment.