Browse Source

优化ob-core接口统计不全问题

路佳明 3 months ago
parent
commit
c6e2b885d5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/consumer/traceurl/traceurl.go

+ 1 - 1
cmd/consumer/traceurl/traceurl.go

@@ -187,7 +187,7 @@ func (tg *taskGroup) task(wg *sync.WaitGroup) func() {
 							log.Debugf("非http请求 %s %s, 跳过", r.SpanID(), attrs2.RpcSystem())
 							continue
 						}
-						if attrs2.RpcSystem() != "" {
+						if attrs2.RpcSystem() != "" && attrs2.RpcSystem() != "http" { // 兼容使用proto定义接口的情况
 							log.Debugf("基于http的rpc请求 %s %s, 跳过", r.SpanID(), attrs2.RpcSystem())
 							continue
 						}