mystamps icon indicating copy to clipboard operation
mystamps copied to clipboard

Add tracing capabilities

Open php-coder opened this issue 7 years ago • 1 comments

In order to improve logging and simplify debugging, let's pass random number that uniquely identifies every request.

  • pass $request_id in the Request-ID header to a backend
  • include request id to the logs on nginx side
  • include request id to the logs on applcation side

Resources:

  • https://www.nginx.com/blog/application-tracing-nginx-plus/
  • https://gongled.ru/blog/2017/01/05/tracing-requests-in-nginx.html (in Russian)

php-coder avatar Oct 10 '18 19:10 php-coder

BTW here is the similar (?) for HAproxy: https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#4.2-unique-id-header

php-coder avatar Oct 30 '18 17:10 php-coder