Log extra metadata about searches
Logging these extra fields as top level keys will ensure that we can query/filter them in Kibana which will help us to answer questions about common search terms or understand usage of search within individual groups. Currently these query params are already logged but they are nested keys they are not indexed and cannot be filtered in any way in Kibana. This change adds to the [existing logic in ApplicationController]( t https://gitlab.com/gitlab-org/gitlab/-/blob/452043cb89801feec2609b83a4ab6a25bfc99c08/app/controllers/application_controller.rb#L148 ) which in term relies on the [`append_info_to_payload`]( https://github.com/rails/rails/blob/fbe2433be6e052a1acac63c7faf287c52ed3c5ba/actionpack/lib/action_controller/metal/instrumentation.rb#L89 ) being invoked after a request. https://gitlab.com/gitlab-org/gitlab/-/issues/227884
Showing
Please register or sign in to comment