Logs time between sent_at and the provider callback into statsd

This commit is contained in:
Martyn Inglis
2016-09-13 13:04:44 +01:00
parent 8541f6adcd
commit 517cec173b
4 changed files with 95 additions and 53 deletions

View File

@@ -342,6 +342,7 @@ def sample_notification(notify_db,
status='created',
reference=None,
created_at=None,
sent_at=None,
billable_units=1,
create=True,
personalisation=None,
@@ -375,6 +376,7 @@ def sample_notification(notify_db,
'status': status,
'reference': reference,
'created_at': created_at,
'sent_at': sent_at,
'billable_units': billable_units,
'personalisation': personalisation,
'notification_type': template.template_type,