Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

eMAGTechLabs/RabbitMqBundle extension for the auxmoney/OpentracingBundle-core

License

Notifications You must be signed in to change notification settings

auxmoney/OpentracingBundle-eMAGTechLabs-RabbitMqBundle

Repository files navigation

This project is abandoned in favour of auxmoney/OpentracingBundle-amqplib-RabbitMq, following the abandonment of eMAGTechLabs fork of RabbitMq. Please switch to auxmoney/OpentracingBundle-amqplib-RabbitMq.

auxmoney OpentracingBundle - eMAGTechLabs/RabbitMqBundle

test GitHub release (latest SemVer) Coveralls github Codacy Badge Code Climate maintainability Scrutinizer code quality (GitHub/Bitbucket) GitHub

This bundle adds automatic tracing header propagation and spanning for eMAGTechLabs fork of RabbitMq producers and consumers to the OpentracingBundle.

Installation

Prerequisites

This bundle is only an additional plugin and should not be installed independently. See its documentation for more information on installing the OpentracingBundle first.

Require dependencies

After you have installed the OpentracingBundle:

  • require the dependencies:
    composer req auxmoney/opentracing-bundle-emagtechlabs-rabbitmqbundle

Enable the bundle

If you are using Symfony Flex, you are all set!

If you are not using it, you need to manually enable the bundle:

  • add bundle to your application:
    # Symfony 4+: bundles.php
    Auxmoney\OpentracingEmagtechlabsRabbitMqBundle\OpentracingEmagtechlabsRabbitMqBundle::class => ['all' => true],

Configuration

No configuration is necessary, the bundle extension will automatically decorate configured consumers and producers.

Usage

Whenever a message is produced or consumed, a span is automatically added to the existing trace. The tracing headers are automatically propagated to the consumer with message headers.

Development

Be sure to run

    composer run-script quality

every time before you push code changes. The tools run by this script are also run in the CI pipeline.