diff options
Diffstat (limited to 'lib/gitlab/instrumentation_helper.rb')
-rw-r--r-- | lib/gitlab/instrumentation_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/instrumentation_helper.rb b/lib/gitlab/instrumentation_helper.rb index b8d8deb3418..b8a2567b775 100644 --- a/lib/gitlab/instrumentation_helper.rb +++ b/lib/gitlab/instrumentation_helper.rb @@ -34,6 +34,7 @@ module Gitlab instrument_worker_id(payload) instrument_uploads(payload) instrument_rate_limiting_gates(payload) + instrument_global_search_api(payload) end def instrument_gitaly(payload) @@ -131,6 +132,10 @@ module Gitlab payload.merge!(::Gitlab::Instrumentation::RateLimitingGates.payload) end + def instrument_global_search_api(payload) + payload.merge!(::Gitlab::Instrumentation::GlobalSearchApi.payload) + end + # Returns the queuing duration for a Sidekiq job in seconds, as a float, if the # `enqueued_at` field or `created_at` field is available. # |