Skip to content

Commit

Permalink
Stamp and middleware for the Symfony Messenger
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankraemer authored Apr 1, 2024
2 parents cb43dbc + 4371891 commit ab3f16a
Show file tree
Hide file tree
Showing 9 changed files with 123 additions and 3,500 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/bin/
/tmp/
/.phpunit.cache/
.idea/
composer.lock
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
[![Code Quality](https://img.shields.io/scrutinizer/g/Phauthentic/correlation-id-symfony-bundle/master.svg?style=for-the-badge)](https://scrutinizer-ci.com/g/Phauthentic/correlation-id-symfony-bundle/)
<!--[![Scrutinizer Coverage](https://img.shields.io/scrutinizer/coverage/g/Phauthentic/correlation-id-symfony-bundle/master.svg?style=for-the-badge)](https://scrutinizer-ci.com/g/Phauthentic/correlation-id-symfony-bundle/)-->


This is a Symfony bridge for the framework agnostic [Correlation ID library](https://github.com/Phauthentic/correlation-id).

> A Correlation ID, also known as a Transit ID, is a unique identifier value that is attached to requests and messages that allow reference to a particular transaction or event chain. The Correlation Pattern, which depends on the use of Correlation ID is a well documented Enterprise Integration Pattern.
## Features

* [The value of a correlation ID](https://blog.rapid7.com/2016/12/23/the-value-of-correlation-ids/)
* [Identity Correlation on Wikipedia](https://en.wikipedia.org/wiki/Identity_correlation)
* Adds the Correlation ID to the Request and Response automatically.
* Header names can be configured for each separately.
* Provides a messenger stamp and middleware, that will add the CorrelationIDStamp to each message.

## Installation

Expand All @@ -37,6 +37,10 @@ correlation_id:
pass_through: false
```
## Messenger Middleware
The messenger middleware will add the Correlation ID to your messages. Just add the middleware to your bus.
## Copyright & License
Licensed under the [MIT license](LICENSE).
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"squizlabs/php_codesniffer": "^3.9",
"symfony/config": "^6.0||^7.0",
"symfony/dependency-injection": "^6.0||^7.0",
"symfony/messenger": "^6.0||^7.0",
"symfony/phpunit-bridge": "^6.0||^7.0"
},
"license": "MIT",
Expand Down
Loading

0 comments on commit ab3f16a

Please sign in to comment.