Sha256: 49f9c03c1cf45e4a6ff84d185dfdcd655f79aa4ffd1449bd2a35ff9ade648ab9
Contents?: true
Size: 1.1 KB
Versions: 6
Compression:
Stored size: 1.1 KB
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 AwsSqs::Chain def self.instrument! ::Aws::SQS::Client.class_eval do include NewRelic::Agent::Instrumentation::AwsSqs alias_method(:send_message_without_new_relic, :send_message) def send_message(*args) send_message_with_new_relic(*args) do send_message_without_new_relic(*args) end end alias_method(:send_message_batch_without_new_relic, :send_message_batch) def send_message_batch(*args) send_message_batch_with_new_relic(*args) do send_message_batch_without_new_relic(*args) end end alias_method(:receive_message_without_new_relic, :receive_message) def receive_message(*args) receive_message_with_new_relic(*args) do receive_message_without_new_relic(*args) end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems