debian-mirror-gitlab/config/initializers/rbtrace.rb
2021-09-04 02:52:04 +05:30

9 lines
287 B
Ruby

# frozen_string_literal: true
if ENV['ENABLE_RBTRACE']
Gitlab::Cluster::LifecycleEvents.on_worker_start do
# We need to require `rbtrace` in a context of a worker process.
# See https://github.com/tmm1/rbtrace/issues/56#issuecomment-648683596.
require 'rbtrace'
end
end