diff --git a/app/notifications/validators.py b/app/notifications/validators.py index 5be9d4c494..f4a0dd507b 100644 --- a/app/notifications/validators.py +++ b/app/notifications/validators.py @@ -194,7 +194,9 @@ def validate_template( template_with_content = create_content_for_notification(template, personalisation) if template.template_type == SMS_TYPE: + # We are trying both metric types to see which one works best for us current_app.statsd_client.gauge('sms.content_length', template_with_content.content_count) + # Histogram is a DataDog specific method, which sends a histogram value to statsd. current_app.statsd_client.histogram('sms.content_length.histogram', template_with_content.content_count) if template.template_type == SMS_TYPE and template_with_content.content_count > SMS_CHAR_COUNT_LIMIT: