Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-04-20 23:42:52 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2016-04-20 23:42:52 +0300
commita257d117a05e0a9eaaef305990335ee7c85cd7a8 (patch)
tree474384dce916b4d5ae3888b2ecb199bfec401e71 /lib/api
parent832cdd3d516698d0e6a7257b3d94292819a0436a (diff)
Fix setting of "action" for Grape transactions
Merely setting the "action" tag will only result in the transaction itself containing a value for this tag. To ensure other metrics also contain this tag we must set the action using Transaction#action= instead.
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/internal.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index 8cfa1f1556b..3ac7b50c4ce 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -23,7 +23,7 @@ module API
end
post "/allowed" do
- Gitlab::Metrics.tag_transaction('action', 'Grape#/internal/allowed')
+ Gitlab::Metrics.action = 'Grape#/internal/allowed'
status 200