Sha256: 020f09c5a130d5e61a903ffc81b1b1ef0a0b000e3ed797ba6ba04b0e4b58313b

Contents?: true

Size: 666 Bytes

Versions: 8

Compression:

Stored size: 666 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.

require_relative 'tilt/instrumentation'
require_relative 'tilt/chain'
require_relative 'tilt/prepend'

DependencyDetection.defer do
  named :tilt

  depends_on { defined?(::Tilt) }

  executes do
    ::NewRelic::Agent.logger.info('Installing Tilt instrumentation')
  end

  executes do
    if use_prepend?
      prepend_instrument ::Tilt::Template, NewRelic::Agent::Instrumentation::Tilt::Prepend
    else
      chain_instrument NewRelic::Agent::Instrumentation::Tilt::Chain
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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