Sha256: ba76e0f6af3e2868e21e244a7542c69e8af008d70863d804197e8a9d171e0a1b
Contents?: true
Size: 889 Bytes
Versions: 11
Compression:
Stored size: 889 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 %>) alias_method(:<%= @method.downcase %>, :<%= @method.downcase %>_with_new_relic) 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
11 entries across 11 versions & 1 rubygems