vasary / x-trace-id
Simple x-request-id trace kit
1.0.6
2021-02-12 09:38 UTC
Requires
- php: >=7.3
- monolog/monolog: ^2
- psr/log: ^1.0.1
- symfony/event-dispatcher: ^5|^4|^3.4
- symfony/http-foundation: ^5|^4|^3.4
- symfony/http-kernel: ^5|^4|^3.4
Requires (Dev)
- phpunit/php-code-coverage: ^9|^8|^7|^6
- phpunit/phpunit: ^9|^8|^7
This package is auto-updated.
Last update: 2024-04-19 23:01:11 UTC
README
Kit
Request logger
- Set trace id from incoming request or generate new trace id.
- Log incoming request
Response logger
- Add trace id to response
- Log outgoing response body
Application name logger processor
Adds to log message extra data with application name. Needs for GELF.
Extra level name logger processor
Adds to log message extra data with an additional log level name. Needs for GELF.
Trace ID processor
Adds to log message extra data with trace id. All logs will have key extra.trace_id with trace id obtained from the incoming request or generated. (Requestlogger.php)
Extra parameters processor
Adds to log message extra data with any key / value pairs in "extra" section