Module: Memolog::SentryExtension::ClassMethods

Defined in:
lib/memolog/sentry_extension.rb

Instance Method Summary collapse

Instance Method Details

#capture_exception(exception, **options, &block) ⇒ Object



9
10
11
12
# File 'lib/memolog/sentry_extension.rb', line 9

def capture_exception(exception, **options, &block)
  set_extras_memolog!
  super
end

#capture_message(message, **options, &block) ⇒ Object



14
15
16
17
# File 'lib/memolog/sentry_extension.rb', line 14

def capture_message(message, **options, &block)
  set_extras_memolog!
  super
end

#set_extras_memolog!Object



19
20
21
22
# File 'lib/memolog/sentry_extension.rb', line 19

def set_extras_memolog!
  return unless get_current_scope
  set_extras(memolog: Memolog.dump(parse_json: true))
end