Class: Datadog::Profiling::Tasks::Setup
- Inherits:
-
Object
- Object
- Datadog::Profiling::Tasks::Setup
- Defined in:
- lib/datadog/profiling/tasks/setup.rb
Overview
Takes care of restarting the profiler when the process forks
Constant Summary collapse
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/datadog/profiling/tasks/setup.rb', line 13 def run ACTIVATE_EXTENSIONS_ONLY_ONCE.run do Datadog::Core::Utils::AtForkMonkeyPatch.apply! setup_at_fork_hooks rescue StandardError, ScriptError => e Datadog.logger.warn do "Profiler extensions unavailable. Cause: #{e.class.name} #{e.} " \ "Location: #{Array(e.backtrace).first}" end end end |