send a notification event to datadog

This commit is contained in:
Andre Medeiros 2021-07-15 20:55:53 -04:00
parent 9db593a969
commit a5e7417f6e

View file

@ -353,6 +353,8 @@ func (nc *notificationsConsumer) Consume(delivery rmq.Delivery) {
} }
} }
nc.statsd.SimpleEvent("Sent notification", account.Username)
nc.logger.WithFields(logrus.Fields{ nc.logger.WithFields(logrus.Fields{
"accountID": delivery.Payload(), "accountID": delivery.Payload(),
}).Debug("finishing job") }).Debug("finishing job")