Sha256: 491287adbe4615e819b3fdff92a66b504b19f01a6f1dc6862f7f3f42d8e2713a

Contents?: true

Size: 238 Bytes

Versions: 9

Compression:

Stored size: 238 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
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mnemosyne-ruby-1.3.0 lib/mnemosyne/global.rb
mnemosyne-ruby-1.2.1 lib/mnemosyne/global.rb
mnemosyne-ruby-1.2.0 lib/mnemosyne/global.rb
mnemosyne-ruby-1.1.0 lib/mnemosyne/global.rb
mnemosyne-ruby-1.1.0.rc1 lib/mnemosyne/global.rb
mnemosyne-ruby-1.0.1 lib/mnemosyne/global.rb
mnemosyne-ruby-1.0.0 lib/mnemosyne/global.rb
mnemosyne-ruby-0.2.0 lib/mnemosyne/global.rb
mnemosyne-ruby-0.1.0 lib/mnemosyne/global.rb