lib/contrast/agent/tracepoint_hook.rb in contrast-agent-4.9.1 vs lib/contrast/agent/tracepoint_hook.rb in contrast-agent-4.10.0

- old
+ new

@@ -33,13 +33,18 @@ loaded_module = tracepoint_event.self path = tracepoint_event.path return if path&.include?('contrast') + Contrast::Agent.framework_manager.register_late_framework(loaded_module) Contrast::Agent::Inventory::DependencyUsageAnalysis.instance.associate_file(path) if path Contrast::Agent::Patching::Policy::Patcher.patch_specific_module(loaded_module) - Contrast::Agent::Assess::Policy::RewriterPatch.rewrite_interpolation(loaded_module) if RUBY_VERSION < '2.6.0' # TODO: RUBY-714 remove guard w/ EOL of 2.5 + if RUBY_VERSION < '2.6.0' # TODO: RUBY-714 remove guard w/ EOL of 2.5 + Contrast::Agent::Assess::Policy::RewriterPatch.rewrite_interpolation(loaded_module) + end Contrast::Agent::Assess::Policy::PolicyScanner.scan(tracepoint_event) + rescue StandardError => e + logger.error('Unable to complete TracePoint analysis', e, module: loaded_module) end end end end end