sofa-tracer icon indicating copy to clipboard operation
sofa-tracer copied to clipboard

Response bytes are always 0

Open WengJim opened this issue 5 years ago • 2 comments

{"time":"2020-03-31 18:16:45.187","local.app":"demo-weixinLite","traceId":"c0a801d7158564980485811531037","spanId":"0","span.kind":"server","result.code":"200","current.thread.name":"http-nio-59104-exec-2","time.cost.milliseconds":"329ms","request.url":"http://testwxlitedemo.cn/weixin/lite/restaurant/detail","method":"POST","req.size.bytes":165,"resp.size.bytes":0,"sys.baggage":"","biz.baggage":""} 我参考了配置,貌似也没有相应的配置相关。 引用的版本是2.4.1

com.alipay.sofa tracer-sofa-boot-starter 2.4.1

WengJim avatar Apr 01 '20 01:04 WengJim

Hi @WengJim, we detect non-English characters in the issue. This comment is an auto translation by @sofastack-robot to help other users to understand this issue.

We encourage you to describe your issue in English which is more friendly to other users.

{"time": "2020-03-31 18: 16: 45.187", "local.app": "demo-weixinLite", "traceId": "c0a801d7158564980485811531037", "spanId": "0", "span.kind ":" server "," result.code ":" 200 "," current.thread.name ":" http-nio-59104-exec-2 "," time.cost.milliseconds ":" 329ms "," request .url ":" http://testwxlitedemo.cn/weixin/lite/restaurant/detail "," method ":" POST "," req.size.bytes ": 165, **" resp.size.bytes ": 0 **, "sys.baggage": "", "biz.baggage": ""} I have consulted the configuration and it seems that there is no corresponding configuration. Referenced version is 2.4.1 <groupId> com.alipay.sofa </groupId><artifactId> tracer-sofa-boot-starter </artifactId> 2.4.1

sofastack-bot[bot] avatar Apr 01 '20 01:04 sofastack-bot[bot]

@WengJim 关于获取 http 结果及请求大小这块是已经问题,我们将在下个版本提供重新的计算方法来优化这个问题

glmapper avatar Dec 07 '20 03:12 glmapper