Sha256: 9ef103fd8d5567a1cd12a0340061d441b7589968f46d3864e75142276103e830

Contents?: true

Size: 594 Bytes

Versions: 7

Compression:

Stored size: 594 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.

module NewRelic::Agent::Instrumentation
  module Rake
    module Chain
      def self.instrument!
        ::Rake::Task.class_eval do
          include NewRelic::Agent::Instrumentation::Rake::Tracer
          alias_method :invoke_without_newrelic, :invoke

          def invoke(*args)
            invoke_with_newrelic_tracing(*args) { invoke_without_newrelic(*args) }
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-8.9.0 lib/new_relic/agent/instrumentation/rake/chain.rb
newrelic_rpm-8.8.0 lib/new_relic/agent/instrumentation/rake/chain.rb
newrelic_rpm-8.7.0 lib/new_relic/agent/instrumentation/rake/chain.rb
newrelic_rpm-8.6.0 lib/new_relic/agent/instrumentation/rake/chain.rb
newrelic_rpm-8.5.0 lib/new_relic/agent/instrumentation/rake/chain.rb
newrelic_rpm-8.4.0 lib/new_relic/agent/instrumentation/rake/chain.rb
newrelic_rpm-8.3.0 lib/new_relic/agent/instrumentation/rake/chain.rb