summaryrefslogtreecommitdiff
path: root/lib/api/internal.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-04-18 17:42:48 +0200
committerYorick Peterse <yorickpeterse@gmail.com>2016-04-18 17:44:24 +0200
commitb9698d2b4512cca4687579aafba6a4403cbc6067 (patch)
tree0857e4cbdc3e9dab7da290acd097c535831fe304 /lib/api/internal.rb
parent58665b64f5bd8795571876587ea3a19253532286 (diff)
downloadgitlab-ce-b9698d2b4512cca4687579aafba6a4403cbc6067.tar.gz
Add "action" tag to /internal/allowed API
This allows us to re-use any other analytics that rely on the "action" tag having a value set.
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r--lib/api/internal.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index 2200208b946..8cfa1f1556b 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -23,9 +23,11 @@ module API
end
post "/allowed" do
+ Gitlab::Metrics.tag_transaction('action', 'Grape#/internal/allowed')
+
status 200
- actor =
+ actor =
if params[:key_id]
Key.find_by(id: params[:key_id])
elsif params[:user_id]
@@ -33,7 +35,7 @@ module API
end
project_path = params[:project]
-
+
# Check for *.wiki repositories.
# Strip out the .wiki from the pathname before finding the
# project. This applies the correct project permissions to