Include subtransactions created by ActiveRecord::Base in counters
What does this MR do?
Changes in this merge request include subtransactions created directly by ActiveRecord::Base
in our Prometheus counters. This moves this instrumentation from ApplicationRecord
to existing ActiveRecord::Base
patches.
It makes it possible to surface subtransactions created in migrations and other code from lib/gitlab/database
.
Conformity
-
I have self-reviewed this MR per code review guidelines.
Issue
See #339102 (closed)
Edited by Grzegorz Bizon