2018-10-20 14:00:19 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
if ENV['ENABLE_RBTRACE']
|
|
|
|
Gitlab::Cluster::LifecycleEvents.on_worker_start do
|
2021-05-26 17:10:49 -04:00
|
|
|
# We need to require `rbtrace` in a context of a worker process.
|
|
|
|
# See https://github.com/tmm1/rbtrace/issues/56#issuecomment-648683596.
|
2018-10-20 14:00:19 -04:00
|
|
|
require 'rbtrace'
|
|
|
|
end
|
|
|
|
end
|