From 071b0db0101c347e5f55beb2cc507f1cf9b9c18a Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 13 Jul 2022 13:55:45 -0400 Subject: [PATCH] higher reporting rate for queue delay stat --- internal/worker/notifications.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/worker/notifications.go b/internal/worker/notifications.go index 204bace..8665c29 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -307,7 +307,7 @@ func (nc *notificationsConsumer) Consume(delivery rmq.Delivery) { // Latency is the time difference between the appearence of the new message and the // time we notified at. latency := now.Sub(msg.CreatedAt) - _ = nc.statsd.Histogram("apollo.queue.delay", float64(latency.Milliseconds()), []string{}, rate) + _ = nc.statsd.Histogram("apollo.queue.delay", float64(latency.Milliseconds()), []string{}, 1.0) notification := &apns2.Notification{} notification.Topic = "com.christianselig.Apollo"