arxus / messenger-newrelic
Make symfony messenger report consumption to newrelic
Installs: 103 787
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 4
Forks: 9
Open Issues: 3
Type:symfony-bundle
Requires
- php: ^8.0
- symfony/http-kernel: ^4.3 || ~5.0 || ~6.0 || ~7.0
- symfony/messenger: ^4.3 || ~5.0 || ~6.0 || ~7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ~3.58
- phpro/grumphp: ^2.0
- phpunit/phpunit: ^9.0 || ^10.0 || ^11.0
- roave/security-advisories: dev-master
- symfony/process: ^4.0 || ~5.0 || ~6.0 || ~7.0
README
Because symfony messenger creates a long running process, newrelic needs to be notified for each message that is processed.
This package provides a middleware and a command listener that handles this for you.
Installation
Require it with composer
composer require arxus/messenger-newrelic
Then add the middleware to your messenger bus middlewares:
framework: messenger: buses: default: middleware: - Arxus\NewrelicMessengerBundle\Middleware\NewRelicMiddleware
Expected results
When newrelic is correctly installed and configured on your host, it should report each consumed message as a separate transaction, using the message name as the transaction name.