diff options
author | Felipe Artur Cardozo <fcardozo@gitlab.com> | 2018-07-24 20:25:25 +0000 |
---|---|---|
committer | Felipe Artur Cardozo <fcardozo@gitlab.com> | 2018-07-24 20:25:25 +0000 |
commit | 236ed1f2f36df1a1a2245dbd2543d17071935313 (patch) | |
tree | 7ac8b4715c7c1c677f23f65a4ea25bb1b7855168 /lib/api/runner.rb | |
parent | f5b45519dba89296cbd6f350f5c29b655d5aef8d (diff) | |
parent | 9e29408ee6072f2559899582b3300a6de54069ff (diff) | |
download | gitlab-ce-236ed1f2f36df1a1a2245dbd2543d17071935313.tar.gz |
Merge branch 'security-event-counters-private-data' into 'master'
[master] Don't expose project names in various counters
See merge request gitlab/gitlabhq!2418
Diffstat (limited to 'lib/api/runner.rb')
-rw-r--r-- | lib/api/runner.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb index d0cc0945a5f..06c034444a1 100644 --- a/lib/api/runner.rb +++ b/lib/api/runner.rb @@ -108,8 +108,7 @@ module API if result.valid? if result.build - Gitlab::Metrics.add_event(:build_found, - project: result.build.project.full_path) + Gitlab::Metrics.add_event(:build_found) present result.build, with: Entities::JobRequest::Response else Gitlab::Metrics.add_event(:build_not_found) @@ -140,8 +139,7 @@ module API job.trace.set(params[:trace]) if params[:trace] - Gitlab::Metrics.add_event(:update_build, - project: job.project.full_path) + Gitlab::Metrics.add_event(:update_build) case params[:state].to_s when 'running' |