docbrown/lib/tasks/metrics.rake
Vaidehi Joshi 35b516a60d
Add metrics around welcome notifications + their click events (#9239)
* Log to DataDog when a welcome notification is created

* Fix typo in Metrics::RecordDailyUsageWorker

* Add Metrics::RecordDailyNotificationsWorker to log notification counts to DataDog

* Add specs around DataDog logging for welcome notifications + click events

* Call Metrics::RecordDailyNotificationsWorker from within log_daily_usage_measurables task

* Use user_id instead of user, move notification title into tags
2020-07-10 12:30:45 +02:00

12 lines
360 B
Ruby

task record_data_counts: :environment do
Metrics::RecordDataCountsWorker.perform_async
end
task log_worker_queue_stats: :environment do
Metrics::RecordBackgroundQueueStatsWorker.perform_async
end
task log_daily_usage_measurables: :environment do
Metrics::RecordDailyUsageWorker.perform_async
Metrics::RecordDailyNotificationsWorker.perform_async
end