Skip to content

Log times for Global Search indexing in Process Bookkeeping Service

Roy Zwambag requested to merge 369246-log-time-indexing into master

What does this MR do and why?

This MR adds logging information about the duration of indexing items in Elastic Search. This will be used to determine service levels.

How to set up and validate locally

  1. Make sure ES is set up correctly
  2. Update a model that is indexed by ES (e.g. an Issue)
  3. Check elasticsearch.log
{"severity":"INFO","time":"2022-08-03T15:33:31.492Z","correlation_id":"374bc3c23895abaed8ca268233c9c937","message":"indexing_done","model_class":"Issue","model_id":"452","es_id":"issue_452","es_parent":"project_19","indexing_duration_s":4.32282}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #369246 (closed)

Edited by Roy Zwambag

Merge request reports