Sha256: b9f3d10b8bc036fbaa1f4f35b6d6e3a2c7d19f0922a1f78378f5ef2e58fe2359

Contents?: true

Size: 599 Bytes

Versions: 6

Compression:

Stored size: 599 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

6 entries across 6 versions & 1 rubygems

Version Path
newrelic_rpm-8.2.0 lib/new_relic/agent/instrumentation/rake/chain.rb
newrelic_rpm-8.1.0 lib/new_relic/agent/instrumentation/rake/chain.rb
newrelic_rpm-8.0.0 lib/new_relic/agent/instrumentation/rake/chain.rb
newrelic_rpm-7.2.0 lib/new_relic/agent/instrumentation/rake/chain.rb
newrelic_rpm-7.1.0 lib/new_relic/agent/instrumentation/rake/chain.rb
newrelic_rpm-7.0.0 lib/new_relic/agent/instrumentation/rake/chain.rb