diff --git a/app/delivery/send_to_providers.py b/app/delivery/send_to_providers.py index cdd34848c..11ab3bc2a 100644 --- a/app/delivery/send_to_providers.py +++ b/app/delivery/send_to_providers.py @@ -80,11 +80,10 @@ def send_sms_to_provider(notification): statsd_client.timing("sms.test-key.total-time", delta_seconds) else: statsd_client.timing("sms.live-key.total-time", delta_seconds) - - if service.id in current_app.config.get('HIGH_VOLUME_SERVICE'): - statsd_client.timing("sms.high-volume.total-time", delta_seconds) - else: - statsd_client.timing("sms.not-high-volume.total-time", delta_seconds) + if service.id in current_app.config.get('HIGH_VOLUME_SERVICE'): + statsd_client.timing("sms.live-key.high-volume.total-time", delta_seconds) + else: + statsd_client.timing("sms.live-key.not-high-volume.total-time", delta_seconds) def send_email_to_provider(notification): @@ -136,11 +135,10 @@ def send_email_to_provider(notification): statsd_client.timing("email.test-key.total-time", delta_seconds) else: statsd_client.timing("email.live-key.total-time", delta_seconds) - - if service.id in current_app.config.get('HIGH_VOLUME_SERVICE'): - statsd_client.timing("email.high-volume.total-time", delta_seconds) - else: - statsd_client.timing("email.not-high-volume.total-time", delta_seconds) + if service.id in current_app.config.get('HIGH_VOLUME_SERVICE'): + statsd_client.timing("email.live-key.high-volume.total-time", delta_seconds) + else: + statsd_client.timing("email.live-key.not-high-volume.total-time", delta_seconds) def update_notification_to_sending(notification, provider):