module NewRelic::Agent::Instrumentation::Firehose::Chain
Public Class Methods
Source
# File lib/new_relic/agent/instrumentation/aws_sdk_firehose/chain.rb, line 7 def self.instrument! ::Aws::Firehose::Client.class_eval do include NewRelic::Agent::Instrumentation::Firehose NewRelic::Agent::Instrumentation::Firehose::INSTRUMENTED_METHODS.each do |method_name| alias_method("#{method_name}_without_new_relic".to_sym, method_name.to_sym) define_method(method_name) do |*args| instrument_method_with_new_relic(method_name, *args) { send("#{method_name}_without_new_relic".to_sym, *args) } end end end end