Something like an application environment that changes during execution?

Thank you for your ideas.
I ended up using Plug.RequestId and use Logger.metadata[:request_id] to where needed.