Skip to content

Add database-chosen to the structured log

Nikola Milojevic requested to merge add-database-chosen-to-structured-log into master

What does this MR do?

SidekiqServerMiddleware will set job[database_chosen] based on the option if we have decided to hit the primary database, replica, or we will retry the job because the database replica is not caught up.

It would be useful to have this value in the sidekiq structured log as well.

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Kamil Trzciński

Merge request reports