lib/contrast/agent.rb in contrast-agent-4.13.1 vs lib/contrast/agent.rb in contrast-agent-4.14.0

- old
+ new

@@ -27,10 +27,13 @@ require 'contrast/utils/os' require 'contrast/utils/hash_digest' require 'contrast/utils/invalid_configuration_util' +# Collect findings +require 'contrast/utils/findings' + # scoping require 'contrast/agent/scope' require 'contrast/utils/thread_tracker' @@ -46,26 +49,38 @@ # 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 + FINDINGS = Contrast::Utils::Findings.new + # @return [Contrast::Framework::Manager] def self.framework_manager @_framework_manager ||= Contrast::Framework::Manager.new end + # @return [nil, Contrast::Utils::HeapDumpUtil] def self.heapdump_util thread_watcher.heapdump_util end + # @return [nil, Contrast::Api::Communication::MessagingQueue] def self.messaging_queue thread_watcher.messaging_queue end + # @return [nil, Contrast::Agent::Telemetry] def self.telemetry_queue return unless thread_watcher.telemetry_queue thread_watcher.telemetry_queue + end + + # @return [nil, Contrast::Agent::Reporter] + def self.reporter_queue + return unless thread_watcher.reporter_queue + + thread_watcher.reporter_queue end def self.thread_watcher @_thread_watcher ||= Contrast::Agent::ThreadWatcher.new end