Tideways Middleware for Symfony Messenger
This package is currently under development and might be moved into the Tideways PHP Extension or stay independent. Consider it as prototype.
This middleware for Symfony Messenger starts a Tideways trace for every processed message, names the trace after the message class and implements integration with Tideways exception tracking.
Tideways is a monitoring, profiling and exception tracking combo for PHP.
Installation
composer require tideways/symfony-messenger-middleware
Configuration for Symfony
framework:
messenger:
buses:
default:
middleware:
- "Tideways\\SymfonyMessenger\\TidewaysMiddleware"
services:
"Tideways\\SymfonyMessenger\\TidewaysMiddleware": ~
Configuration for Shopware
Shopware uses the Symfony Messenger under the hood and using this middleware requires just a slightly different configuration:
# config/packages/messenger.yaml
framework:
messenger:
buses:
messenger.bus.shopware:
middleware:
- "Tideways\\SymfonyMessenger\\TidewaysMiddleware"
services:
"Tideways\\SymfonyMessenger\\TidewaysMiddleware": ~