From 710443830ba48dc200a467203cc91ed6ea6ba7b7 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 2 Nov 2022 18:44:42 -0400 Subject: [PATCH] easy on the histograms --- 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 f3cc820..eaec291 100644 --- a/internal/worker/notifications.go +++ b/internal/worker/notifications.go @@ -279,7 +279,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{}, 1.0) + _ = nc.statsd.Histogram("apollo.queue.delay", float64(latency.Milliseconds()), []string{}, 0.1) notification := &apns2.Notification{} notification.Topic = "com.christianselig.Apollo"