diff --git a/relay-server/src/services/buffer/mod.rs b/relay-server/src/services/buffer/mod.rs index 0a011bfe25b..8304c698b94 100644 --- a/relay-server/src/services/buffer/mod.rs +++ b/relay-server/src/services/buffer/mod.rs @@ -147,9 +147,21 @@ impl EnvelopeBufferService { ); self.system_ready(buffer).await; + + relay_statsd::metric!( + counter(RelayCounters::BufferReadyToPop) += 1, + status = "checking" + ); + if self.sleep > Duration::ZERO { tokio::time::sleep(self.sleep).await; } + + relay_statsd::metric!( + counter(RelayCounters::BufferReadyToPop) += 1, + status = "checking" + ); + if let Some(project_cache_ready) = self.project_cache_ready.as_mut() { project_cache_ready.await?; self.project_cache_ready = None;