Jianshao Wu created CXF-8220:
--------------------------------

             Summary: The tag "http.status_code" is always 200 in server side 
tracing span, no matter what situation 
                 Key: CXF-8220
                 URL: https://issues.apache.org/jira/browse/CXF-8220
             Project: CXF
          Issue Type: Bug
          Components: Tracing
    Affects Versions: 3.3.4
            Reporter: Jianshao Wu


The tag "http.status_code" is always 200 in server side tracing span. I 
investigated source code, found the following code in the method 
"handleMessage" of  the class 
"org.apache.cxf.tracing.opentracing.OpenTracingStopInterceptor " :
{code:java}
 Integer responseCode = (Integer)message.get(Message.RESPONSE_CODE);
 if (responseCode == null) {
 responseCode = 200;
 }{code}
The phase of this interceptor is PRE_MARSHAL, in this phase, the responseCode 
is not put yet. Maybe this interceptor should be bound to another appropriate 
phase.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to