amqplib
Advanced Message Queuing Protocol (AMQP) is an open standard protocol that facilitates messaging interoperability across systems, regardless of the message broker vendor or platform they utilize, for example between STOMP and MQTT brokers.
The AppSignal for Node.js integration for amqplib and compatible packages such as Rascal allows you to instrument the sending and receiving of messages in your application.
Installation
The amqplib package is instrumented automatically by the AppSignal for Node.js package.
Features
When using the amqplib integration, AppSignal will create a child span for each message that is sent or received.
Note that if the messages are received/sent outside of an instrumented context, such as a web request or background job, it's required to manually create a span to wrap the message processing.
Below is an example for Rascal using the simplest example found on their repository, with manual instrumentation added to wrap the message processing in a span.
For more information about manual instrumentation, see the custom instrumentation guide.