zfs123 commented on issue #3827:
URL: https://github.com/apache/apisix/issues/3827#issuecomment-800949615


   > Actually, we can't measure the time of phases correctly. Therefore I 
advise reassigning the span into proxy/response which is doubtless.
   
   Reassigning the span into proxy/response is a nice way. 
   
   I have a idea that if we want to measure the time of phases, how about 
splitting the zipkin plugin into two plugins?
   
   zipkin-proxy: from the request start to the request is tranfered to 
upstream(rewrite, access, balancer)
   zipkin-response: from the header of the response is read to the start of log 
phase.(header_filter, body_filter)
   
   In order not to include upstream response time, the zipkin-proxy plugin 
should have the lowest priority. 
   In order to measure the time of header_filter phase, the zipkin-response 
plugin should have the highest priority. 
   
   Can we measure the time of every phase correctly by 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:
[email protected]


Reply via email to