lib/statsd/instrument/strict.rb in statsd-instrument-3.5.0 vs lib/statsd/instrument/strict.rb in statsd-instrument-3.5.1

- old
+ new

@@ -95,11 +95,11 @@ def check_tags_and_sample_rate(sample_rate, tags) unless sample_rate.nil? || sample_rate.is_a?(Numeric) raise ArgumentError, "The sample_rate argument should be a number, got #{sample_rate}" end - unless tags.nil? || tags.is_a?(Hash) || tags.is_a?(Array) - raise ArgumentError, "The tags argument should be a hash or an array, got #{tags.inspect}" + unless tags.nil? || tags.is_a?(Hash) || tags.is_a?(Array) || tags.is_a?(Proc) + raise ArgumentError, "The tags argument should be a hash, a proc or an array, got #{tags.inspect}" end end end module StrictMetaprogramming