diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-10 00:09:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-06-10 00:09:51 +0300 |
commit | e374f6b2297582fde956350e92c19d1ae93ddfc8 (patch) | |
tree | 30be153d2883438955cfbf0d576052adc5875f67 /app | |
parent | 1268cfeaf73a73c5593f13639530513716826e2b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/graphql_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/graphql_controller.rb b/app/controllers/graphql_controller.rb index f8967cf023f..0d348624864 100644 --- a/app/controllers/graphql_controller.rb +++ b/app/controllers/graphql_controller.rb @@ -35,6 +35,7 @@ class GraphqlController < ApplicationController before_action :set_user_last_activity before_action :track_vs_code_usage before_action :track_jetbrains_usage + before_action :track_jetbrains_bundled_usage before_action :track_gitlab_cli_usage before_action :disable_query_limiting before_action :limit_query_size @@ -177,6 +178,11 @@ class GraphqlController < ApplicationController .track_api_request_when_trackable(user_agent: request.user_agent, user: current_user) end + def track_jetbrains_bundled_usage + Gitlab::UsageDataCounters::JetBrainsBundledPluginActivityUniqueCounter + .track_api_request_when_trackable(user_agent: request.user_agent, user: current_user) + end + def track_gitlab_cli_usage Gitlab::UsageDataCounters::GitLabCliActivityUniqueCounter .track_api_request_when_trackable(user_agent: request.user_agent, user: current_user) |