Sha256: d5ce6e3845c83fac20458a7b1f3e44cfe00d288b409d2b01137c5f9dc56562fd
Contents?: true
Size: 373 Bytes
Versions: 7
Compression:
Stored size: 373 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
7 entries across 7 versions & 1 rubygems