lib/memolog/sentry_scope_extension.rb in memolog-0.2.2 vs lib/memolog/sentry_scope_extension.rb in memolog-0.3.0

- old
+ new

@@ -1,8 +1,10 @@ # frozen_string_literal: true module Memolog::SentryScopeExtension - def extra + def apply_to_event(scope, hint = nil) memolog_dump = Memolog.dump - memolog_dump.present? ? super.merge!(Memolog.config.sentry_key => memolog_dump) : super + set_extras(Memolog.config.sentry_key => memolog_dump) if memolog_dump + + super end end