module NewRelic::Agent::Instrumentation::AwsSdkLambda::Chain
Public Class Methods
Source
# File lib/new_relic/agent/instrumentation/aws_sdk_lambda/chain.rb, line 9 def self.instrument! ::Aws::Lambda::Client.class_eval do include NewRelic::Agent::Instrumentation::AwsSdkLambda alias_method(:invoke_without_new_relic, :invoke) def invoke(*args) invoke_with_new_relic(*args) { invoke_without_new_relic(*args) } end alias_method(:invoke_async_without_new_relic, :invoke_async) def invoke_async(*args) invoke_async_with_new_relic(*args) { invoke_async_without_new_relic(*args) } end alias_method(:invoke_with_response_stream_without_new_relic, :invoke_with_response_stream) def invoke_with_response_stream(*args) invoke_with_response_stream_with_new_relic(*args) { invoke_with_response_stream_without_new_relic(*args) } end end end
Public Instance Methods
Source
# File lib/new_relic/agent/instrumentation/aws_sdk_lambda/chain.rb, line 15 def invoke(*args) invoke_with_new_relic(*args) { invoke_without_new_relic(*args) } end
Source
# File lib/new_relic/agent/instrumentation/aws_sdk_lambda/chain.rb, line 21 def invoke_async(*args) invoke_async_with_new_relic(*args) { invoke_async_without_new_relic(*args) } end
Source
# File lib/new_relic/agent/instrumentation/aws_sdk_lambda/chain.rb, line 27 def invoke_with_response_stream(*args) invoke_with_response_stream_with_new_relic(*args) { invoke_with_response_stream_without_new_relic(*args) } end