Skip to content

Commit

Permalink
Avoid sending the sha: statsd tag unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
dirceu committed Nov 11, 2019
1 parent 49eb22e commit 3ee3184
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/krane/deprecated_deploy_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,9 @@ def ejson_keys_secret
end

def statsd_tags
%W(namespace:#{@namespace} sha:#{@current_sha} context:#{@context}) | @namespace_tags
tags = %W(namespace:#{@namespace} context:#{@context}) | @namespace_tags
@current_sha.nil? ? tags : %W(sha:#{@current_sha}) | tags
tags
end

def with_retries(limit)
Expand Down

0 comments on commit 3ee3184

Please sign in to comment.