higher reporting rate for queue delay stat

This commit is contained in:
Andre Medeiros 2022-07-13 13:55:45 -04:00
parent 5e573c831a
commit 071b0db010

View file

@ -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"