mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-22 03:37:43 +00:00
higher reporting rate for queue delay stat
This commit is contained in:
parent
5e573c831a
commit
071b0db010
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// Latency is the time difference between the appearence of the new message and the
|
||||||
// time we notified at.
|
// time we notified at.
|
||||||
latency := now.Sub(msg.CreatedAt)
|
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 := &apns2.Notification{}
|
||||||
notification.Topic = "com.christianselig.Apollo"
|
notification.Topic = "com.christianselig.Apollo"
|
||||||
|
|
Loading…
Reference in a new issue