lib/contrast/agent.rb in contrast-agent-3.12.2 vs lib/contrast/agent.rb in contrast-agent-3.13.0

- old
+ new

@@ -39,20 +39,33 @@ cs__scoped_require 'contrast/utils/thread_tracker' # Framework support cs__scoped_require 'contrast/framework/manager' +# Communication to SR +cs__scoped_require 'contrast/api/communication' + +cs__scoped_require 'contrast/agent/thread_watcher' + module Contrast # Top namespace of the Agent section. Holds tracking contexts that will be # accessed throughout the Agent. module Agent # build a map for tracking the context of the current request REQUEST_TRACKER = Contrast::Utils::ThreadTracker.new def self.framework_manager @_framework_manager ||= Contrast::Framework::Manager.new end + + def self.messaging_queue + @_messaging_queue ||= Contrast::Api::Communication::MessagingQueue.new + end + + def self.thread_watcher + @_thread_watcher ||= Contrast::Agent::ThreadWatcher.new + end end end cs__scoped_require 'contrast/api' @@ -61,11 +74,10 @@ cs__scoped_require 'contrast/agent/tracepoint_hook' cs__scoped_require 'contrast/agent/at_exit_hook' # communication with contrast service cs__scoped_require 'contrast/agent/exclusion_matcher' -cs__scoped_require 'contrast/agent/socket_client' # threads that handle contrast scope cs__scoped_require 'contrast/agent/thread' # keep track of attacks @@ -74,10 +86,10 @@ cs__scoped_require 'contrast/agent/assess' # protect rules cs__scoped_require 'contrast/agent/protect/rule' -# application libraries and technologies +# application libraries cs__scoped_require 'contrast/utils/gemfile_reader' # rack event monitoring cs__scoped_require 'contrast/agent/middleware'