Sha256: 3807c715375d8b3742197dd99d84aa8d8e109fcbc10fa7e1d7c9f48ee7c987c4

Contents?: true

Size: 620 Bytes

Versions: 13

Compression:

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

module NewRelic::Agent::Instrumentation
  module ViewComponent::Chain
    def self.instrument!
      ::ViewComponent::Base.class_eval do
        include NewRelic::Agent::Instrumentation::ViewComponent

        alias_method(:render_in_without_tracing, :render_in)

        def render_in(*args)
          render_in_with_tracing(*args) do
            render_in_without_tracing(*args)
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
newrelic_rpm-9.16.0 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.15.0 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.14.0 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.13.0 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.12.0 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.11.0 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.10.2 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.10.1 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.10.0 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.9.0 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.8.0 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.7.1 lib/new_relic/agent/instrumentation/view_component/chain.rb
newrelic_rpm-9.7.0 lib/new_relic/agent/instrumentation/view_component/chain.rb