auxmoney / opentracing-bundle-emagtechlabs-rabbitmqbundle
Symfony Opentracing bundle extension for eMAGTechLabs/RabbitMqBundle
Installs: 14 305
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: ^7.3.27
- auxmoney/opentracing-bundle-core: ^v1.0
- emag-tech-labs/rabbitmq-bundle: ^2.0
- opentracing/opentracing: ^1.0.1
Requires (Dev)
- mtdowling/jmespath.php: ^2.6
- php-coveralls/php-coveralls: ^2.5
- phpmd/phpmd: ^2.10
- phpstan/phpstan: ^1.1
- phpunit/phpunit: ^7.5
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^3.6
- symfony/filesystem: *
- symfony/process: *
- symfony/yaml: *
This package is auto-updated.
Last update: 2021-12-10 07:32:05 UTC
README
auxmoney OpentracingBundle - eMAGTechLabs/RabbitMqBundle
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.