Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timothysmith0609 committed Dec 10, 2018
1 parent e9eac54 commit 7119eb9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/kubernetes-deploy/statsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def self.increment(key, value = 1, *metric_options)
super
end

def self.distribution(key, value=nil, *metric_options, &block)
def self.distribution(key, value = nil, *metric_options, &block)
if metric_options && metric_options.first.is_a?(Hash)
metric_options.first[:prefix] = PREFIX
end
Expand Down Expand Up @@ -77,8 +77,7 @@ def measure_method(method_name, metric = nil)
StatsD.distribution(
metric,
KubernetesDeploy::StatsD.duration(start_time),
tags: dynamic_tags,
prefix: PREFIX
tags: dynamic_tags
)
end
end
Expand Down

0 comments on commit 7119eb9

Please sign in to comment.