RMQ - RabbitMQ C++ Library
Classes | Public Member Functions | List of all members
BloombergLP::rmqp::ProducerTracing Class Referenceabstract

An interface for ProducerTracing class. More...

#include <rmqp_producertracing.h>

Classes

class  Context
 

Public Member Functions

virtual bsl::shared_ptr< ContextcreateAndTag (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...
 

Detailed Description

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

Member Function Documentation

◆ createAndTag()

virtual bsl::shared_ptr< Context > BloombergLP::rmqp::ProducerTracing::createAndTag ( rmqt::Properties messageProperties,
const bsl::string &  routingKey,
const bsl::string &  exchangeName,
const bsl::shared_ptr< const rmqt::Endpoint > &  endpoint 
) const
pure virtual

create a (tracing) context with relevant pieces of the producer context and tag the messageProperties with any trace info.

Parameters
messagePropertiesa valid pointer to a modifiable message properties object e.g. for injecting trace info into the headers.
routingKeythe routingKey used when sending.
exchangeNamethe name of the exchange the current producer is sending from.
endpointthe server endpoint details the current producer is connected to.

The documentation for this class was generated from the following files: