Module: ExceptionHunter::Tracking

Included in:
ExceptionHunter
Defined in:
lib/exception_hunter/tracking.rb

Instance Method Summary collapse

Instance Method Details

#track(exception, custom_data: {}, user: nil) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/exception_hunter/tracking.rb', line 3

def track(exception, custom_data: {}, user: nil)
  ErrorCreator.call(
    tag: ErrorCreator::MANUAL_TAG,
    class_name: exception.class.to_s,
    message: exception.message,
    backtrace: exception.backtrace,
    custom_data: custom_data,
    user: user,
    environment_data: {}
  )

  nil
end