lib/contrast.rb in contrast-agent-6.6.5 vs lib/contrast.rb in contrast-agent-6.7.0
- old
+ new
@@ -51,17 +51,13 @@
include(other)
end
end
end
-require 'contrast/components/agent'
-require 'contrast/components/api'
-require 'contrast/components/app_context'
require 'contrast/components/assess'
require 'contrast/components/config'
require 'contrast/components/contrast_service'
-require 'contrast/components/inventory'
require 'contrast/components/logger'
require 'contrast/components/protect'
require 'contrast/components/sampling'
require 'contrast/components/scope'
require 'contrast/components/settings'
@@ -71,19 +67,19 @@
require 'protobuf' # TODO: RUBY-1438
module Contrast
CONFIG = Contrast::Components::Config::Interface.new
SCOPE = Contrast::Components::Scope::Interface.new
- API = CONFIG.root.api
+ API = CONFIG.api
SETTINGS = Contrast::Components::Settings::Interface.new
- ASSESS = Contrast::Components::Assess::Interface.new
+ ASSESS = CONFIG.assess
PROTECT = Contrast::Components::Protect::Interface.new
- INVENTORY = CONFIG.root.inventory
- AGENT = CONFIG.root.agent
+ INVENTORY = CONFIG.inventory
+ AGENT = CONFIG.agent
LOGGER = AGENT.logger
CONTRAST_SERVICE = Contrast::Components::ContrastService::Interface.new
- APP_CONTEXT = CONFIG.root.application
+ APP_CONTEXT = CONFIG.application
end
module Contrast
TELEMETRY_EXCEPTIONS = (Contrast::Utils::TelemetryHash.new if Contrast::Utils::Telemetry.exceptions_enabled?)
end
@@ -93,10 +89,9 @@
require 'contrast/agent/version'
# shared utils
require 'contrast/utils/timer'
-require 'contrast/utils/preflight_util'
require 'contrast/utils/assess/sampling_util'
require 'contrast/agent'
if RUBY_VERSION >= '3.0.0' && RUBY_VERSION < '3.1.0'