hostme / request-id-bundle
Include a correlation identifier in all requests.
Installs: 10 818
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^7.4 || ^8.0
- ramsey/uuid: ^4.2
- symfony/framework-bundle: ^6.1
- symfony/monolog-bundle: ^3.7
- symfony/options-resolver: ^6.1
- symfony/security-bundle: ^6.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: ^0.12.91
- phpstan/phpstan-symfony: ^0.12.41
- phpunit/phpunit: ^9.5
README
Add in config/bundles.php
:
<?php // ... HostMe\RequestIdBundle\RequestIdBundle::class => ['all' => true],
Config in packages/request_id.yaml
:
request_id: enable: true # default: true enable_monolog: true # default: true trust_request_header: true # default: true response_header: X-Request-Id
Register monolog formatter in monolog.yaml
:
monolog: handlers: main: ... formatter: hostme_request_id.formatter.request_id