Skip to content

Commit

Permalink
remove va_notify_metadata_statsd_tags toggle logic (#20728)
Browse files Browse the repository at this point in the history
  • Loading branch information
coope93 authored Feb 21, 2025
1 parent 93ba16f commit 5fe9da5
Show file tree
Hide file tree
Showing 2 changed files with 140 additions and 313 deletions.
10 changes: 1 addition & 9 deletions modules/va_notify/lib/va_notify/default_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,7 @@ def call

def call_with_metadata
notification_type = metadata['notification_type']

if Flipper.enabled?(:va_notify_metadata_statsd_tags)
tags = validate_and_normalize_statsd_tags
else
statsd_tags = metadata['statsd_tags']
service = statsd_tags['service']
function = statsd_tags['function']
tags = ["service:#{service}", "function:#{function}"]
end
tags = validate_and_normalize_statsd_tags

case notification_record.status
when 'delivered'
Expand Down
Loading

0 comments on commit 5fe9da5

Please sign in to comment.