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 Method Summary collapse

Constructor Details

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

Returns a new instance of ComponentsState.



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

def initialize(telemetry_enabled:, remote_started:, di_implicitly_enabled: false)
  @telemetry_enabled = !!telemetry_enabled
  @remote_started = !!remote_started
  @di_implicitly_enabled = !!di_implicitly_enabled
end

Instance Method Details

#di_implicitly_enabled? ⇒ Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/datadog/core/configuration/components_state.rb', line 22

def di_implicitly_enabled?
  @di_implicitly_enabled
end

#remote_started? ⇒ Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/datadog/core/configuration/components_state.rb', line 18

def remote_started?
  @remote_started
end

#telemetry_enabled? ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/datadog/core/configuration/components_state.rb', line 14

def telemetry_enabled?
  @telemetry_enabled
end