nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.25k stars 322 forks source link

How to pass $request_id to my application? #1182

Closed txigreman closed 3 months ago

txigreman commented 3 months ago

Hi,

I'm trying to make my application aware of the new variable $request_id, so I can use it in the logs and improve traceability. I've tried to pass it in the enviroment section of the application, but njs templates does not seem to work there.

How could I achieve it?

Thanks in advance.