Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mchlwellman committed Nov 22, 2024
1 parent 6522bf3 commit 652e9d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/notifications/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 652e9d4

Please sign in to comment.