Method: Datadog::Core::Remote::Component.build
- Defined in:
- lib/datadog/core/remote/component.rb
.build(settings, agent_settings, logger:, telemetry:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Because the agent might not be available yet, we can’t perform agent-specific checks yet, as they would prevent remote configuration from ever running.
Those checks are instead performed inside the worker loop. This allows users to upgrade their agent while keeping their application running.
154 155 156 157 158 |
# File 'lib/datadog/core/remote/component.rb', line 154 def build(settings, agent_settings, logger:, telemetry:) return unless settings.remote.enabled new(settings, Client::Capabilities.new(settings, telemetry), agent_settings, logger: logger) end |