You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2023/01/11 08:12:22 UTC

[GitHub] [shenyu] simplechen opened a new issue, #4310: [Question] 网关调试模式

simplechen opened a new issue, #4310:
URL: https://github.com/apache/shenyu/issues/4310

   ### Question
   
   新功能
   在网关上面新加一个调试模式,在开启状态时,客户端通过http协议的header['debug']=true,网关定义一个接口在每个plugin中实现这个接口完成debug信息的回写,最后网关返回的报文中追加一个和code同级的属性 trace:{} 把经过的plugin的调试信息输出给客户端调用方,这样调用方可以通过调试信息判断自己定义的PLUGIN及规则是否正确,不用通过传统的日志方式去定位问题,减少一次转场,可以调效开发,此功能想法来自于APIJSON开源项目的调试模式


-- 
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@shenyu.apache.org.apache.org

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


[GitHub] [shenyu] simplechen commented on issue #4310: [Question] 网关调试模式

Posted by GitBox <gi...@apache.org>.
simplechen commented on issue #4310:
URL: https://github.com/apache/shenyu/issues/4310#issuecomment-1378378525

   new function
   Add a new debugging mode on the gateway. When it is turned on, the client passes the header['debug']=true of the http protocol. The gateway defines an interface and implements this interface in each plugin to complete the writeback of debug information. Finally, the gateway Add an attribute trace:{} at the same level as code to the returned message to output the debugging information of the passed plugin to the client caller, so that the caller can judge whether the PLUGIN and rules defined by itself are correct through the debugging information, without passing The traditional log method can be used to locate problems, reduce one transition, and improve the efficiency of development


-- 
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@shenyu.apache.org

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


[GitHub] [shenyu] simplechen commented on issue #4310: [Question] Gateway Debug Mode

Posted by GitBox <gi...@apache.org>.
simplechen commented on issue #4310:
URL: https://github.com/apache/shenyu/issues/4310#issuecomment-1378387807

   train of thought
   1. Framework-level implementation
   2. Provide plug-in developers with an entry to write back debugging information (interface definition)


-- 
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@shenyu.apache.org

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


[GitHub] [shenyu] yu199195 closed issue #4310: [Question] Gateway Debug Mode

Posted by "yu199195 (via GitHub)" <gi...@apache.org>.
yu199195 closed issue #4310: [Question] Gateway Debug Mode
URL: https://github.com/apache/shenyu/issues/4310


-- 
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@shenyu.apache.org

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