Add a search_level field to logging
Proposal
Related to #332631
Currently group_id
and project_id
fields are logged when searches are performed via search_controller.rb
method append_info_to_payload
. We will soon add project_ids
when multi-select project search is introduced. Unfortunately, we sometimes see the tracking fields are present but empty which makes analysis using Kibana more difficult. We could add a new tracking field search_level
that determines which type of search is being performed: global
, group
, project
, and multi-project
. This would make log analysis a LOT easier and less prone to issues with blank but present fields.