summaryrefslogtreecommitdiff
path: root/config/initializers/transaction_metrics.rb
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2019-06-21 11:18:19 +0200
committerAndrew Newdigate <andrew@gitlab.com>2019-06-28 12:46:51 +0200
commit56ae34e49b80c8c93661e00e490d4c9048e70273 (patch)
treef7ddd9609deb06c8eec66194b5c6251ed071bd31 /config/initializers/transaction_metrics.rb
parent32806aee150239d60783c77ae17811cba139a3ef (diff)
downloadgitlab-ce-56ae34e49b80c8c93661e00e490d4c9048e70273.tar.gz
Adds metrics to measure database transactionstransaction-metrics
Currently we don't have good insight into the affect of Rails transaction blocks on the application. If these blocks are held open for extended periods, they can have detrimental effects on the application. This change will allow us to track these transactions, with the aim of reducing their duration.
Diffstat (limited to 'config/initializers/transaction_metrics.rb')
-rw-r--r--config/initializers/transaction_metrics.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/initializers/transaction_metrics.rb b/config/initializers/transaction_metrics.rb
new file mode 100644
index 00000000000..0175d487e66
--- /dev/null
+++ b/config/initializers/transaction_metrics.rb
@@ -0,0 +1,3 @@
+# frozen_string_literal: true
+
+Gitlab::Database.install_monkey_patches