PHPackages                             mdavid-dev/symfony-correlation-id-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. mdavid-dev/symfony-correlation-id-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

mdavid-dev/symfony-correlation-id-bundle
========================================

Symfony bundle to manage correlation IDs across HTTP requests and responses

v0.2.2(3mo ago)101[1 issues](https://github.com/mdavid-dev/symfony-correlation-id-bundle/issues)MITPHPPHP ^8.1CI passing

Since Oct 16Pushed 3mo agoCompare

[ Source](https://github.com/mdavid-dev/symfony-correlation-id-bundle)[ Packagist](https://packagist.org/packages/mdavid-dev/symfony-correlation-id-bundle)[ RSS](/packages/mdavid-dev-symfony-correlation-id-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (12)Versions (13)Used By (0)

Symfony Correlation ID Bundle
=============================

[](#symfony-correlation-id-bundle)

A Symfony bundle to automatically manage correlation IDs across HTTP requests and responses, making it easy to trace and debug your application.

Features
--------

[](#features)

- **Automatic ID Management**: Extracts correlation ID from incoming request headers or generates a new UUID v4
- **Monolog Integration**: Automatically adds correlation ID to all logs
- **Configurable &amp; Secure**: Validate incoming IDs (length, format), trust or ignore incoming headers
- **Easy to Use**: Zero-config installation with sensible defaults
- **Production Ready**: 100% test coverage, follows Symfony best practices

Installation
------------

[](#installation)

### 1. Install via Composer

[](#1-install-via-composer)

```
composer require mdavid-dev/symfony-correlation-id-bundle
```

### 2. Enable the Bundle

[](#2-enable-the-bundle)

```
