Sha256: ab9998f66f98053a694ec31ed2fe6331315c9fc9853469f06e24b09765d53582

Contents?: true

Size: 405 Bytes

Versions: 2

Compression:

Stored size: 405 Bytes

Contents

# frozen_string_literal: true

module IIInteractor
  module Instrumentation
    extend ActiveSupport::Concern

    def call_all
      ActiveSupport::Notifications.instrument 'start_call_all.ii_interactor', interactor: self
      super
    end

    def call_self
      ActiveSupport::Notifications.instrument 'process_call_self.ii_interactor', interactor: self do
        super
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ii_interactor-2.3.1 lib/ii_interactor/instrumentation.rb
ii_interactor-2.3.0 lib/ii_interactor/instrumentation.rb