Class: Sqreen::Ecosystem::Messaging::Sqs
- Inherits:
-
Object
- Object
- Sqreen::Ecosystem::Messaging::Sqs
- Includes:
- Loggable, Sqreen::Ecosystem::ModuleApi::Instrumentation, Sqreen::Ecosystem::ModuleApi::MessageProducer
- Defined in:
- lib/sqreen/ecosystem/messaging/sqs.rb
Instance Attribute Summary
Attributes included from Sqreen::Ecosystem::ModuleApi::MessageProducer
Instance Method Summary collapse
Methods included from Sqreen::Ecosystem::ModuleApi::Instrumentation
Instance Method Details
#setup ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/sqreen/ecosystem/messaging/sqs.rb', line 20 def setup advice_send = wrap_for_interest(ModuleApi::Tracing::ProducerData, &method(:after_send_advice)) advice_receive = wrap_for_interest(ModuleApi::Tracing::ConsumerData, &method(:after_receive_advice)) instrument 'Aws::SQS::Client#send_message', after: advice_send instrument 'Aws::SQS::Client#send_message_batch', after: advice_send instrument 'Aws::SQS::Client#receive_message', after: advice_receive end |