You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2020/02/28 05:01:00 UTC
[jira] [Resolved] (CXF-8220) The tag "http.status_code" is always
200 in server side tracing span, no matter what situation
[ https://issues.apache.org/jira/browse/CXF-8220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andriy Redko resolved CXF-8220.
-------------------------------
Resolution: Fixed
> 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)