Sha256: 27e77d0bd4ff8aecb72444d89d897ad23e4dceb4fcc9a806f4fd9f2cc15e2a97

Contents?: true

Size: 1.15 KB

Versions: 25

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true
module Dynflow
  module Debug
    module Telemetry
      module Persistence
        methods = [
          :load_action,
          :load_actions,
          :load_action_for_presentation,
          :load_action,
          :load_actions,
          :load_action_for_presentation,
          :load_actions_attributes,
          :save_action,
          :find_execution_plans,
          :find_execution_plan_counts,
          :delete_execution_plans,
          :load_execution_plan,
          :save_execution_plan,
          :find_old_execution_plans,
          :find_past_delayed_plans,
          :delete_delayed_plans,
          :save_delayed_plan,
          :set_delayed_plan_frozen,
          :load_delayed_plan,
          :load_step,
          :load_steps,
          :save_step,
          :push_envelope,
          :pull_envelopes
        ]

        methods.each do |name|
          define_method(name) do |*args|
            Dynflow::Telemetry.measure(:dynflow_persistence, :method => name, :world => @world.id) { super *args }
          end
        end
      end
    end
  end
end

::Dynflow::Persistence.send(:prepend, ::Dynflow::Debug::Persistence)

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
dynflow-1.8.2 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.8.1 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.8.0 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.7.0 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.6.11 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.6.10 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.6.8 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.6.7 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.6.6 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.6.5 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.6.4 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.6.3 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.6.2 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.6.1 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.4.9 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.4.8 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.5.0 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.4.7 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.4.6 lib/dynflow/debug/telemetry/persistence.rb
dynflow-1.4.5 lib/dynflow/debug/telemetry/persistence.rb