Skip to content

Fix db call logging numbers

Nikola Milojevic requested to merge 222684-fix-db-call-logging into master

What does this MR do?

This MR introduces storing/caching db counters per transaction, on request level, by using Gitlab::SafeRequestStore instead of reading counter state directly.

This will ensure that we show the correct counter state in logs, which is per transaction value.

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

Closes #222684 (closed)

Edited by Kamil Trzciński (Back 2025-01-01)

Merge request reports