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 63aeb14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/krane/deprecated_deploy_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,8 @@ 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
end

def with_retries(limit)
Expand Down

0 comments on commit 63aeb14

Please sign in to comment.