Skip to content

[Feature] php-amqplib Integration #1840

@orlandothoeny

Description

@orlandothoeny

As a developer, I'd like to see information about RabbitMQ messages inside traces.

Solution
Support for the php-amqplib library, which is as far as I could research the most widely used RabbitMQ client for PHP.

Alternatives I've considered
Implementing custom instrumentation myself. I would prefer to have this out of the box though.

Interesting methods
Methods I personally am interested in:

AMQPChannel

  • PhpAmqpLib\Channel\AMQPChannel::basic_publish()
  • PhpAmqpLib\Channel\AMQPChannel::basic_consume()
  • PhpAmqpLib\Channel\AMQPChannel::basic_get()
  • PhpAmqpLib\Channel\AMQPChannel::basic_ack()
  • PhpAmqpLib\Channel\AMQPChannel::basic_nack()
  • PhpAmqpLib\Channel\AMQPChannel::basic_cancel()

Especially interesting parameters: Exchange, Queue, Routing Key

AbstractConnection

  • PhpAmqpLib\Connection\AbstractConnection::connect()
  • PhpAmqpLib\Connection\AbstractConnection::reconnect()

It might make sense to extend this list.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions