Skip to content

Commit

Permalink
FRW-9742 Adjusted Rabbit MQ instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitriyTsemma committed Jan 15, 2025
1 parent 9b40127 commit 9653f43
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,26 @@ class RabbitMqInstrumentation
*/
protected const FUNCTION_SEND_MESSAGE = 'sendMessage';

/**
* @var string
*/
protected const FUNCTION_RECEIVE_MESSAGE = 'receiveMessage';

/**
* @var string
*/
protected const FUNCTION_RECEIVE_MESSAGES = 'receiveMessages';

/**
* @var string
*/
protected const SPAN_NAME_RECEIVE_MESSAGE = 'rabbitmq-receiveMessage';

/**
* @var string
*/
protected const SPAN_NAME_RECEIVE_MESSAGES = 'rabbitmq-receiveMessages';

/**
* @return void
*/
Expand All @@ -73,6 +93,8 @@ public static function register(): void
$functions = [
static::FUNCTION_SEND_MESSAGE => static::SPAN_NAME_SEND_MESSAGE,
static::FUNCTION_SEND_MESSAGES => static::SPAN_NAME_SEND_MESSAGES,
static::FUNCTION_RECEIVE_MESSAGE => static::SPAN_NAME_RECEIVE_MESSAGE,
static::FUNCTION_RECEIVE_MESSAGES => static::SPAN_NAME_RECEIVE_MESSAGES,
];

foreach ($functions as $function => $spanName) {
Expand Down

0 comments on commit 9653f43

Please sign in to comment.