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

v1.1.1 2023-03-15 14:29 UTC

This package is auto-updated.

Last update: 2024-11-15 18:33:48 UTC


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