lib/contrast.rb in contrast-agent-7.2.0 vs lib/contrast.rb in contrast-agent-7.3.0
- old
+ new
@@ -59,14 +59,16 @@
require 'contrast/components/protect'
require 'contrast/components/sampling'
require 'contrast/components/scope'
require 'contrast/components/settings'
require 'contrast/utils/routes_sent'
-require 'contrast/agent/telemetry/hash'
+require 'contrast/agent/telemetry/exception_hash'
require 'contrast/agent/telemetry/telemetry'
require 'contrast/agent/telemetry/exception/event'
require 'contrast/agent_lib/interface'
+require 'contrast/agent/telemetry/cache_hash'
+require 'contrast/agent/telemetry/base64_hash'
module Contrast # :nodoc:
CONFIG = Contrast::Components::Config::Interface.new
SCOPE = Contrast::Components::Scope::Interface.new
APP_CONTEXT = CONFIG.application
@@ -80,10 +82,15 @@
LOGGER = AGENT.logger
AGENT_LIB = Contrast::AgentLib::Interface.new
end
module Contrast
- TELEMETRY_EXCEPTIONS = (Contrast::Agent::Telemetry::Hash.new if Contrast::Agent::Telemetry.exceptions_enabled?)
+ TELEMETRY_EXCEPTIONS = (if Contrast::Agent::Telemetry.exceptions_enabled?
+ Contrast::Agent::Telemetry::ExceptionHash.new
+ end)
+ TELEMETRY_IA_CACHE = (Contrast::Agent::Telemetry::CacheHash.new if Contrast::Agent::Telemetry::Base.enabled?)
+ TELEMETRY_BASE64_HASH = (Contrast::Agent::Telemetry::Base64Hash.new if Contrast::Agent::Telemetry::Base.enabled? &&
+ Contrast::PROTECT.normalize_base64?)
ROUTES_SENT = Contrast::Utils::RoutesSent.new
end
# This needs to be required very early, after component interfaces, and before instrumentation attempts
require 'contrast/funchook/funchook'