Skip to content

Commit

Permalink
Updating readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankraemer committed Mar 28, 2024
1 parent e2da806 commit 398d2d5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,29 @@ This is a Symfony bridge for the framework agnostic [Correlation ID library](htt
* [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)

## Installation

```sh
composer require phauthentic/correlation-id-symfony-bundle
```

## Configuration

You can configure three different settings to control the behavior:

* `response_header_name` - The name of the response header for the ID.
* `request_header_name` - The name of the request header for the ID.
* `pass_through` - If the ID from the request should be passed to the response enable this. This is useful if you are dealing with a microservice that is not exposed to the public but gets further actions delegated from the entry point and must retain the original ID.

`config/correlation_id.yaml`:

```yaml
correlation_id:
response_header_name: 'X-Correlation-ID'
request_header_name: 'X-Correlation-ID'
pass_through: false
```
## Copyright & License
Licensed under the [MIT license](LICENSE).
Expand Down

0 comments on commit 398d2d5

Please sign in to comment.