Sha256: 59f17f15f2907409039cd90dbfc27794f4dd02bc3387f7a7b7feddf5ab29b62a

Contents?: true

Size: 471 Bytes

Versions: 17

Compression:

Stored size: 471 Bytes

Contents

module Upperkut
  module Middlewares
    class NewRelic
      include ::NewRelic::Agent::Instrumentation::ControllerInstrumentation

      def call(worker, _items)
        perform_action_with_newrelic_trace(trace_args(worker)) do
          yield
        end
      end

      private

      def trace_args(worker)
        {
          name: 'perform',
          class_name: worker.name,
          category: 'OtherTransaction/Upperkut'
        }
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
upperkut-1.0.4 lib/upperkut/middlewares/new_relic.rb
upperkut-1.0.2 lib/upperkut/middlewares/new_relic.rb
upperkut-1.0.0.rc lib/upperkut/middlewares/new_relic.rb
upperkut-0.8.1 lib/upperkut/middlewares/new_relic.rb
upperkut-0.8.0 lib/upperkut/middlewares/new_relic.rb
upperkut-0.7.5 lib/upperkut/middlewares/new_relic.rb
upperkut-0.7.4 lib/upperkut/middlewares/new_relic.rb
upperkut-0.7.2 lib/upperkut/middlewares/new_relic.rb
upperkut-0.7.1 lib/upperkut/middlewares/new_relic.rb
upperkut-0.7.0 lib/upperkut/middlewares/new_relic.rb
upperkut-0.6.0 lib/upperkut/middlewares/new_relic.rb
upperkut-0.5.2 lib/upperkut/middlewares/new_relic.rb
upperkut-0.5.1 lib/upperkut/middlewares/new_relic.rb
upperkut-0.5.0 lib/upperkut/middlewares/new_relic.rb
upperkut-0.4.6 lib/upperkut/middlewares/new_relic.rb
upperkut-0.4.5 lib/upperkut/middlewares/new_relic.rb
upperkut-0.4.4 lib/upperkut/middlewares/new_relic.rb