Welcome to mirror list, hosted at ThFree Co, Russian Federation.

rbtrace.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2359fc9f6b5aafb50b3a8cd19af9ad727a6fe546 (plain)
1
2
3
4
5
6
7
8
9
# 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