Module: APMInsight::API::CustomTracker

Defined in:
lib/agent/api/custom_tracker.rb

Defined Under Namespace

Modules: CustomMethodTracker

Class Method Summary collapse

Class Method Details

.included(clazz) ⇒ Object



7
8
9
# File 'lib/agent/api/custom_tracker.rb', line 7

def self.included clazz
  clazz.extend CustomMethodTracker
end

.trackException(exception) ⇒ Object

CustomMethodTracker



69
70
71
72
73
74
75
# File 'lib/agent/api/custom_tracker.rb', line 69

def self.trackException(exception)
  return unless exception != nil
  
  # Check for active transaction
  # Associate exception to current transaction
  ::APMInsight::API::CustomAPIHandler.track_exception(exception)
end