Class: LogMethod::BugsnagAfterLog

Inherits:
Object
  • Object
show all
Defined in:
lib/log_method/bugsnag_after_log.rb

Class Method Summary collapse

Class Method Details

.call(class_thats_logging_name, method_name, object_id, object_class_name, trace_id, current_actor_id, _log_message) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'lib/log_method/bugsnag_after_log.rb', line 2

def self.call(class_thats_logging_name, method_name, object_id, object_class_name, trace_id, current_actor_id, _log_message)
  current_actor_id_attribute = LogMethod.config.current_actor_id_label.to_sym
  Bugsnag.leave_breadcrumb method_name.to_s[0..29], {
    class: class_thats_logging_name,
    object_id: object_id,
    object_class: object_class_name,
    trace_id: trace_id,
    current_actor_id_attribute => current_actor_id,
  }, Bugsnag::Breadcrumbs::LOG_BREADCRUMB_TYPE
end