Module: Mnemosyne::Global
- Included in:
- Mnemosyne
- Defined in:
- lib/mnemosyne/global.rb
Instance Method Summary collapse
Instance Method Details
#attach_error(err) ⇒ Object
14 15 16 17 18 |
# File 'lib/mnemosyne/global.rb', line 14 def attach_error(err) return unless (trace = ::Mnemosyne::Instrumenter.current_trace) trace.attach_error(err) end |
#trace(name, meta: {}, &block) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/mnemosyne/global.rb', line 5 def trace(name, meta: {}, &block) ::ActiveSupport::Notifications.instrument( 'trace.mnemosyne', name:, meta:, &block ) end |