Miss-you commented on issue #2643: URL: https://github.com/apache/apisix/issues/2643#issuecomment-723724910
These are two different scenarios. I think Apache APISIX itself should use jit-uuid to generate unique ID, but in the case of tracing requests and responses, it should use `ngx.var.request_id`. > > > we mainly use `jit-uuid` when we need to generate Gateway ID in APISIX, it works in `init_lua` phase. > > > > > > > > > > > > > > I do not think we can use `ngx.var.request_id` in this phase. > > > > > > Why Apache APISIX need to generate a uuid in `init` stage? What problem needs to be solved? > > If it is used for tracing, I think the lifecycle of a request will be in rewrite/access , etc. And `init` or `init_worker` phase don't need uuid. > > It's an ID for each APISIX instance, not for each request. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org