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 2021/09/16 10:11:19 UTC

[GitHub] [apisix] Donghui0 opened a new issue #5077: bug: In radixtree_host_uri mode, the prometheus plugin cannot obtain the correct matched_uri value.

Donghui0 opened a new issue #5077:
URL: https://github.com/apache/apisix/issues/5077


   ### Issue description
   
   In radixtree_host_uri mode.   api_ctx.curr_req_matched._path was eventually replaced by  `host_rev`
   
   example:
         request:  http://123.com/x1         api_ctx.curr_req_matched._path  replaced by  `moc.321`
   
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): v2.9
   - OS (cmd: `uname -a`): centos7
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): 1.19.3.1
   
   
   ### Steps to reproduce
   
   1: adjustment mode, change to `radixtree_host_uri`
   2: request  apisix route
   3: query apisx:9091/apisx/promethues/metrics.
   
   
   ### Actual result
   
   host reverse.  
   example:
         request:  http://123.com/x1         api_ctx.curr_req_matched._path  replaced by  `moc.321`
   
   ### Error log
   
   none
   
   ### Expected result
   
   api_ctx.curr_req_matched._path  replaced by  `matched_ops.uri`


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #5077: bug: In radixtree_host_uri mode, the prometheus plugin cannot obtain the correct matched_uri value.

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


   


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #5077: bug: In radixtree_host_uri mode, the prometheus plugin cannot obtain the correct matched_uri value.

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


   Need to reset curr_req_matched._path after matched.
   Would you provide a fix?


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org