You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/08/13 04:08:29 UTC
[GitHub] [skywalking] wu-sheng commented on a change in pull request #7271: fix: Fix MultiScopesAnalysisListener#setPublicAttrs log warn frequently
wu-sheng commented on a change in pull request #7271:
URL: https://github.com/apache/skywalking/pull/7271#discussion_r688229455
##########
File path: oap-server/analyzer/agent-analyzer/src/main/java/org/apache/skywalking/oap/server/analyzer/provider/trace/parser/listener/MultiScopesAnalysisListener.java
##########
@@ -240,12 +240,15 @@ private void setPublicAttrs(SourceBuilder sourceBuilder, SpanObject span) {
sourceBuilder.setLatency((int) latency);
sourceBuilder.setResponseCode(Const.NONE);
span.getTagsList().forEach(tag -> {
- if (SpanTags.STATUS_CODE.equals(tag.getKey())) {
+ if (SpanTags.HTTP_RESPONSE_STATUS_CODE.equals(tag.getKey())) {
Review comment:
I think we should check the old tag too? Unless, OAL engine is not compatible with old agent, right? But we should indicate it is `Deprecated` through comment and make the logic clear through comments.
--
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@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org