[ 
https://issues.apache.org/jira/browse/CXF-8220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17047207#comment-17047207
 ] 

Andriy Redko commented on CXF-8220:
-----------------------------------

Thank you, [~jms_wu], would you mind to check the latest snapshot 
(3.3.6-SNAPSHOT)? The issue should be fixed now.

> 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, 3.2.12
>            Reporter: Jianshao Wu
>            Assignee: Andriy Redko
>            Priority: Major
>             Fix For: 3.4.0, 3.3.6, 3.2.13
>
>         Attachments: cxf-tracing-test.zip
>
>
> 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