debian-mirror-gitlab/config/initializers/rbtrace.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
287 B
Ruby
Raw Normal View History

2018-12-13 13:39:08 +05:30
# frozen_string_literal: true
if ENV['ENABLE_RBTRACE']
Gitlab::Cluster::LifecycleEvents.on_worker_start do
2021-09-04 01:27:46 +05:30
# We need to require `rbtrace` in a context of a worker process.
# See https://github.com/tmm1/rbtrace/issues/56#issuecomment-648683596.
2018-12-13 13:39:08 +05:30
require 'rbtrace'
end
end