Sha256: f64bb3db878cee179e0f0cb5d46bbb5253aec1800829f41fdccbf64da12ed8a9
Contents?: true
Size: 374 Bytes
Versions: 2
Compression:
Stored size: 374 Bytes
Contents
# frozen_string_literal: true module Mnemosyne module Global def trace(name, meta: {}) ::ActiveSupport::Notifications.instrument 'trace.mnemosyne', name: name, meta: meta do yield end end def attach_error(err) return unless (trace = ::Mnemosyne::Instrumenter.current_trace) trace.attach_error(err) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mnemosyne-ruby-1.9.0 | lib/mnemosyne/global.rb |
mnemosyne-ruby-1.8.0 | lib/mnemosyne/global.rb |