summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2019-01-28 15:47:48 +0200
committerAndrew Newdigate <andrew@gitlab.com>2019-01-30 13:38:19 +0200
commitd022ce865502c051c9177fc0f5b2453eae7e7cc2 (patch)
treea2cb931fc9b75dfe538979b1e478048b2a0591de /config
parentc2b3f64cb44114e69ddeeb453412ad4dd762baf9 (diff)
downloadgitlab-ce-d022ce865502c051c9177fc0f5b2453eae7e7cc2.tar.gz
Add OpenTracing instrumentation for Action View Render events
This change adds three new instrumentations, driven through rails notifications: render_template.action_view, render_collection.action_view and render_partial.action_view. These can help developers understand why renders are taking a long time which may in turn help them to improve their performance.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/tracing.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/tracing.rb b/config/initializers/tracing.rb
index d5bef8edb43..ddd91150c90 100644
--- a/config/initializers/tracing.rb
+++ b/config/initializers/tracing.rb
@@ -25,6 +25,7 @@ if Gitlab::Tracing.enabled?
# Instrument Rails
Gitlab::Tracing::Rails::ActiveRecordSubscriber.instrument
+ Gitlab::Tracing::Rails::ActionViewSubscriber.instrument
# In multi-processed clustered architectures (puma, unicorn) don't
# start tracing until the worker processes are spawned. This works