Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G gitlab-ce
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedinexedi
  • gitlab-ce
  • Repository
  • gitlab-ce
  • spec
  • controllers
  • search_controller_spec.rb
Find file BlameHistoryPermalink
  • Dylan Griffith's avatar
    Log extra metadata about searches · eb68a596
    Dylan Griffith authored Jul 28, 2020
    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
    eb68a596
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7