Sha256: 5101307a8969818a06ed3cd63850a4fa2ee83e11faad5103de21cb8eb1cc265f

Contents?: true

Size: 456 Bytes

Versions: 41

Compression:

Stored size: 456 Bytes

Contents

require 'ddtrace/contrib/rails/utils'

module Datadog
  module Contrib
    module Rails
      # Code used to create and handle 'rails.render_template' and 'rails.render_partial' spans.
      module ActionView
        include Datadog::Patcher

        def self.instrument
          # patch Rails core components
          do_once(:instrument) do
            Datadog::RailsRendererPatcher.patch_renderer
          end
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
ddtrace-0.12.1 lib/ddtrace/contrib/rails/action_view.rb