Method: Datadog::Core::Utils::Forking.extended

Defined in:
lib/datadog/core/utils/forking.rb

.extended(base) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/datadog/core/utils/forking.rb', line 12

def self.extended(base)
  # Explicitly update PID here because there's a case where
  # the code path that lazily updates the PID may not be exercised
  # until after a fork occurs, thus causing the event to be missed.
  # By eagerly setting this, we avoid this scenario.
  base.update_fork_pid!
end