Sha256: 76e79774311d243ef158eb28e77a6d725f0cbe4e94cedc2fe4e2d8ef6271a824

Contents?: true

Size: 627 Bytes

Versions: 6

Compression:

Stored size: 627 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2021

module Instana
  module Activators
    class ActionView < Activator
      def can_instrument?
        defined?(::ActionView::PartialRenderer)
      end

      def instrument
        require 'instana/instrumentation/action_view'

        ::ActionView::PartialRenderer
          .prepend(Instana::Instrumentation::ActionView::PartialRenderer)
        if defined?(::ActionView::CollectionRenderer)
          ::ActionView::CollectionRenderer
            .prepend(Instrumentation::ActionView::CollectionRenderer)
        end
        true
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
instana-1.217.1 lib/instana/activators/action_view.rb
instana-1.217.0 lib/instana/activators/action_view.rb
instana-1.216.0 lib/instana/activators/action_view.rb
instana-1.215.1 lib/instana/activators/action_view.rb
instana-1.215.0 lib/instana/activators/action_view.rb
instana-1.214.4 lib/instana/activators/action_view.rb