Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FRW-9742 Adjusted Rabbit MQ instrumentation #9

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading