You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/08 23:58:02 UTC

[GitHub] [apisix] nic-chen commented on issue #2643: request help: Use ngx.var.request_id as unique id, not jit-uuid.

nic-chen commented on issue #2643:
URL: https://github.com/apache/apisix/issues/2643#issuecomment-723685913


   > > 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:
users@infra.apache.org