|
RMQ - RabbitMQ C++ Library
|
An interface for ProducerTracing class. More...
#include <rmqp_producertracing.h>
Classes | |
| class | Context |
Public Member Functions | |
| virtual bsl::shared_ptr< Context > | createAndTag (rmqt::Properties *messageProperties, const bsl::string &routingKey, const bsl::string &exchangeName, const bsl::shared_ptr< const rmqt::Endpoint > &endpoint) const =0 |
| create a (tracing) context with relevant pieces of the producer context and tag the messageProperties with any trace info. More... | |
An interface for ProducerTracing class.
A ProducerTracing class implements the create method which will create a Tracing Context designed to span the lifetime of the message publication process, the create method will be invoked when a message is sent, the context has the opportunity to override the message properties e.g. to inject tracing headers before the message is sent. The context will be held until the send has been acknowledged/returned from the server
|
pure virtual |
create a (tracing) context with relevant pieces of the producer context and tag the messageProperties with any trace info.
| messageProperties | a valid pointer to a modifiable message properties object e.g. for injecting trace info into the headers. |
| routingKey | the routingKey used when sending. |
| exchangeName | the name of the exchange the current producer is sending from. |
| endpoint | the server endpoint details the current producer is connected to. |