Class: Datadog::Core::Configuration::ComponentsState

Inherits:
Object
  • Object
show all
Defined in:
lib/datadog/core/configuration/components_state.rb

Overview

Stores the state of component tree when replacing the tree.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(telemetry_enabled:, remote_started:, di_implicitly_enabled: false, rc_enablement_signal_paths: []) ⇒ ComponentsState

Returns a new instance of ComponentsState.



8
9
10
11
12
13
14
# File 'lib/datadog/core/configuration/components_state.rb', line 8

def initialize(telemetry_enabled:, remote_started:, di_implicitly_enabled: false,
  rc_enablement_signal_paths: [])
  @telemetry_enabled = !!telemetry_enabled
  @remote_started = !!remote_started
  @di_implicitly_enabled = !!di_implicitly_enabled
  @rc_enablement_signal_paths = rc_enablement_signal_paths || []
end

Instance Attribute Details

#rc_enablement_signal_paths ⇒ Array<Core::Remote::Configuration::Path> (readonly)

The RC enable-signal carrier paths recorded by the replaced tree's DI component.



31
32
33
# File 'lib/datadog/core/configuration/components_state.rb', line 31

def rc_enablement_signal_paths
  @rc_enablement_signal_paths
end

Instance Method Details

#di_implicitly_enabled? ⇒ Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/datadog/core/configuration/components_state.rb', line 24

def di_implicitly_enabled?
  @di_implicitly_enabled
end

#remote_started? ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/datadog/core/configuration/components_state.rb', line 20

def remote_started?
  @remote_started
end

#telemetry_enabled? ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/datadog/core/configuration/components_state.rb', line 16

def telemetry_enabled?
  @telemetry_enabled
end