Skip to content

Commit

Permalink
Merge pull request #341 from Shopify/raginpirate/tag_error_class_stri…
Browse files Browse the repository at this point in the history
…ct_mode

Expose tag_error_class option in strict mode
  • Loading branch information
raginpirate authored Apr 26, 2023
2 parents 5c48c50 + 269c5ac commit f4ea913
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ section below.

## Unreleased changes

- Allow the `tag_error_class` option for `statsd_count_success` in strict mode.

## Version 3.5.7

- Improve time measurement to avoid seconds to milliseconds conversions.
Expand Down
3 changes: 2 additions & 1 deletion lib/statsd/instrument/strict.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ def statsd_distribution(method, name, sample_rate: nil, tags: nil, no_prefix: fa
super
end

def statsd_count_success(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil)
def statsd_count_success(method, name, sample_rate: nil, tags: nil, no_prefix: false, client: nil,
tag_error_class: false)
check_method_and_metric_name(method, name)
super
end
Expand Down

0 comments on commit f4ea913

Please sign in to comment.