Module: Contrast::Agent::TracePointHook
- Defined in:
- lib/contrast/agent/hooks/tracepoint_hook.rb
Overview
This module is used to apply instrumentation to classes as they are required
Class Method Summary collapse
Methods included from Components::Logger::InstanceMethods
Methods included from Components::Scope::InstanceMethods
contrast_enter_method_scopes!, contrast_exit_method_scopes!, with_app_scope, with_contrast_scope, with_deserialization_scope, with_split_scope
Class Method Details
.disable ⇒ Object
24 25 26 |
# File 'lib/contrast/agent/hooks/tracepoint_hook.rb', line 24 def disable instance_variable_defined?(:@require_hook) && @require_hook.disable end |
.enable! ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/contrast/agent/hooks/tracepoint_hook.rb', line 15 def enable! @require_hook ||= TracePoint.new(:end) do |tracepoint_event| process(tracepoint_event) end @require_hook.enable logger.debug('Enabled :end event tracing') end |