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/08/07 10:46:33 UTC

[GitHub] [apisix] sshniro opened a new issue #2022: request help: How to uniquely identify requests in APISIX

sshniro opened a new issue #2022:
URL: https://github.com/apache/apisix/issues/2022


   ### Issue description
   When a client requests an API error I want to find the relevant request in the access logs. Is there a way to provide unique id. for each request and append in the request header?


----------------------------------------------------------------
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



[GitHub] [apisix] sshniro commented on issue #2022: request help: How to uniquely identify requests in APISIX

Posted by GitBox <gi...@apache.org>.
sshniro commented on issue #2022:
URL: https://github.com/apache/apisix/issues/2022#issuecomment-670853192


   Thank you, I'll create a request-id plugin for this use case and send a PR, and I assume this plugin should have the highest priority number?


----------------------------------------------------------------
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



[GitHub] [apisix] membphis commented on issue #2022: request help: How to uniquely identify requests in APISIX

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2022:
URL: https://github.com/apache/apisix/issues/2022#issuecomment-670534445


   we can implement a plugin for this feature.
   
   1. check if the request contains `X-Request-Id`
   2. if not we'll generate a UUID as `request_id`
   3. set to proxy_header and response header
   4. write `request_id` to access log


----------------------------------------------------------------
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



[GitHub] [apisix] membphis closed issue #2022: feature: Request ID plugin to uniquely identify requests in APISIX

Posted by GitBox <gi...@apache.org>.
membphis closed issue #2022:
URL: https://github.com/apache/apisix/issues/2022


   


----------------------------------------------------------------
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



[GitHub] [apisix] membphis commented on issue #2022: feature: Request ID plugin to uniquely identify requests in APISIX

Posted by GitBox <gi...@apache.org>.
membphis commented on issue #2022:
URL: https://github.com/apache/apisix/issues/2022#issuecomment-670855628


   > and I assume this plugin should have the highest priority number?
   
   yes, we need to implement it in this way.


----------------------------------------------------------------
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