lib/contrast/components/config.rb in contrast-agent-7.0.0 vs lib/contrast/components/config.rb in contrast-agent-7.1.0
- old
+ new
@@ -2,11 +2,11 @@
# frozen_string_literal: true
require 'contrast/utils/env_configuration_item'
require 'ougai'
require 'contrast/configuration'
-require 'contrast/config/diagnostics'
+require 'contrast/config/diagnostics/monitor'
module Contrast
module Components
# This component encapsulates reference to the configuration file.
# At the time of writing, the configuration file is a yaml file reflecting
@@ -247,10 +247,10 @@
current_level = current_level.send(segment) if current_level.cs__respond_to?(segment)
end
return unless current_level.nil? == false && current_level.cs__respond_to?(dot_path_array[-1])
current_level.send("#{ dot_path_array[-1] }=", value)
- sources.set(dot_path_array.join('.'), Contrast::Components::Config::Sources::ENVIRONMENT)
+ sources.set(dot_path_array.join('.'), Contrast::Components::Config::Sources::ENVIRONMENT_VARIABLE)
end
end
end
end
end