Sha256: edf6817a285498424974dbaf3dba94a3a1007242411a4e64f04a75b5d7d9846c

Contents?: true

Size: 678 Bytes

Versions: 4

Compression:

Stored size: 678 Bytes

Contents

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

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

4 entries across 4 versions & 1 rubygems

Version Path
newrelic_rpm-8.13.1 lib/new_relic/agent/instrumentation/tilt.rb
newrelic_rpm-8.13.0 lib/new_relic/agent/instrumentation/tilt.rb
newrelic_rpm-8.12.0 lib/new_relic/agent/instrumentation/tilt.rb
newrelic_rpm-8.11.0 lib/new_relic/agent/instrumentation/tilt.rb