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 2020/05/21 06:51:32 UTC
[GitHub] [skywalking] Leebot opened a new issue #4810: is ResponseCode in metric a joking?
Leebot opened a new issue #4810:
URL: https://github.com/apache/skywalking/issues/4810
We are using Skwalking's OAL for metric collection.
and found that, ResponseCode in "filter" statement doesn't work.
After tracking source code, we found an interesting thing list below:
```java
private void setPublicAttrs(SourceBuilder sourceBuilder, SpanDecorator spanDecorator) {
long latency = spanDecorator.getEndTime() - spanDecorator.getStartTime();
sourceBuilder.setLatency((int) latency);
sourceBuilder.setResponseCode(Const.NONE);
sourceBuilder.setStatus(!spanDecorator.getIsError());
```
ResponseCode is hardcoded to 0. is this a design bug or something?
```java
sourceBuilder.setResponseCode(Const.NONE);
```
- Why do you submit this issue?
- [ ] Question or discussion
- [ * ] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #4810: is ResponseCode in metric a joking?
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4810:
URL: https://github.com/apache/skywalking/issues/4810#issuecomment-631919079
Have been located and fixed in the master branch.
https://github.com/apache/skywalking/blob/a10e04493272a88931d6916662b30d0a320287bb/oap-server/server-receiver-plugin/skywalking-trace-receiver-plugin/src/main/java/org/apache/skywalking/oap/server/receiver/trace/provider/parser/listener/MultiScopesAnalysisListener.java#L229-L238
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng closed issue #4810: is ResponseCode in metric a joking?
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #4810:
URL: https://github.com/apache/skywalking/issues/4810
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [skywalking] Leebot commented on issue #4810: is ResponseCode in metric a joking?
Posted by GitBox <gi...@apache.org>.
Leebot commented on issue #4810:
URL: https://github.com/apache/skywalking/issues/4810#issuecomment-631938320
thanks for all developers
----------------------------------------------------------------
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:
users@infra.apache.org