Skip to content

Commit 0702abe

Browse files
committed
We need metrics logging
1 parent 1449f69 commit 0702abe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/gitlab_shell.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,10 @@ def process_cmd(args)
133133
end
134134

135135
args_string = [File.basename(executable), *args].join(' ')
136-
$logger.info "gitlab-shell: executing git command <#{args_string}> for #{log_username}."
137-
exec_cmd(executable, *args)
136+
GitlabMetrics.meature(File.basename(executable)) do
137+
$logger.info "gitlab-shell: executing git command <#{args_string}> for #{log_username}."
138+
exec_cmd(executable, *args)
139+
end
138140
end
139141

140142
# This method is not covered by Rspec because it ends the current Ruby process.

0 commit comments

Comments
 (0)