Sha256: a1ed846d628a720e3f59270f96d6b452b85f561776e5ad789a892f7ff42037e4
Contents?: true
Size: 801 Bytes
Versions: 14
Compression:
Stored size: 801 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 <%= @class_name %>::Chain def self.instrument! ::<%= @class_name %>.class_eval do include NewRelic::Agent::Instrumentation::<%= @class_name %> alias_method(:<%= @method.downcase %>_without_new_relic, :<%= @method.downcase %>) def <%= @method.downcase %><%= "(#{@args})" unless @args.empty? %> <%= @method.downcase %>_with_new_relic<%= "(#{@args})" unless @args.empty? %> do <%= @method.downcase %>_without_new_relic<%= "(#{@args})" unless @args.empty? %> end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems