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

SOFATracer is a component for the distributed system call trace. And through a unified traceId logging the logs of various network calls in the invoking link. These logs can be used for quick discover...

Results 69 sofa-tracer issues
Sort by recently updated
recently updated
newest added

### Describe the bug 使用httpClient使用连接池请求发生异常时,com.alipay.sofa.tracer.plugins.httpclient.interceptor.SofaTracerHttpInterceptor#process(org.apache.http.HttpResponse, org.apache.http.protocol.HttpContext) 无法调用到,导致无法调用sofaTraceContext.pop(),导致内存泄漏,并且spanId 会无限加长(.1.1.1.1.1.1),后续异常请求无限嵌套SofaTracerSpan对象。 ![image](https://user-images.githubusercontent.com/25599808/182799998-d81f10e6-87ce-4e12-bdc9-886c47308fc5.png) ### Expected behavior ### Actual behavior 当http请求失败数量增多,会导致内存泄漏SofaTracerSpan对象和spanId无限增长。 ### Steps to reproduce ### Minimal yet complete reproducer code (or GitHub URL to...

waiting for feedback

### Motivation: -Added operationName adapter, in order to resolve operationName get displayed as unknown issue. -Added stressTest mark support. ### Modification: -Resolve operationName, traceId during sending the request to Zipkin....

size/S
First-time contributor
cla:no

### Motivation: 支持上报span数据到Skywalking中 ### Modification: ### 异步上报 使用http上报Json格式的segment数据到后端,上报时以message为单位,多个segment组合成一个message。流程如下图,span结束后将转换好的segment加入到segment缓冲数组中,另一个线程不断到数组中刷新数据到message,当message的大小达到最大值或等待发送的时间达到设定值就发送一次数据。 设置的message最大为2MB,计算每个segment的字节大小方法是把segment转换成Json String计算其长度,长度作为这个segment的字节大小。 ![image](https://user-images.githubusercontent.com/37374154/132272561-aa2a2bd0-d56c-4447-a501-efaa115e8a4d.png) ### 关于拓扑图的展示问题的讨论 [#443](https://github.com/sofastack/sofa-tracer/issues/443#issuecomment-907959648) 这次提交的结果,设置`skipAnalysis`为`true`,不显示拓扑图和其他的一个指标只能查询trace信息 ### 设置error 使用的是其他插件中使用的判断方法,这样当404的时候也会显示为错误 ```java private boolean isHttpOrMvcSuccess(String resultCode) { return resultCode.charAt(0) == '1' || resultCode.charAt(0)...

cla:yes
size/XXL
First-time contributor

### Motivation: 解决redis plugin未恢复paren span,导致span id的层级无限增长的问题 ### Modification: Describe the idea and modifications you've done. 在finish span后,将parent span恢复到当前栈中 ### Result: Fixes #463.

cla:yes
size/M
First-time contributor

Bumps [json-smart](https://github.com/netplex/json-smart-v2) from 2.3 to 2.4.5. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=net.minidev:json-smart&package-manager=maven&previous-version=2.3&new-version=2.4.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

Bumps [dubbo](https://github.com/apache/incubator-dubbo) from 2.6.2 to 2.6.12. Release notes Sourced from dubbo's releases. dubbo-2.6.12 What's Changed [2.6] update hessian lite version: 3.2.11 -> 3.2.12 (#9455) dubbo-2.6.11 Change Lists Add serialize id...

dependencies

Bumps [fastjson](https://github.com/alibaba/fastjson) from 1.2.51 to 1.2.83. Release notes Sourced from fastjson's releases. FASTJSON 1.2.83版本发布(安全修复) 这是一个安全修复版本,修复最近收到在特定场景下可以绕过autoType关闭限制的漏洞,建议fastjson用户尽快采取安全措施保障系统安全。 安全修复方案 :https://github.com/alibaba/fastjson/wiki/security_update_20220523 Issues 安全加固 修复JDK17下setAccessible报错的问题 #4077 下载 https://repo1.maven.org/maven2/com/alibaba/fastjson/1.2.83/ 文档 https://github.com/alibaba/fastjson/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98 源码 https://github.com/alibaba/fastjson/tree/1.2.83 fastjson 1.2.79版本发布,BUG修复 这又是一个bug...

dependencies

### Motivation: 由于从 OpenFeign 10.7.3 版本开始, requestBody() 这个方法被 OpenFeign 废弃了, 导致 Request.create() 方法报错,feign 调用的日志无法生成。 ### Modification: 1. 将 `com.alipay.sofa.tracer.plugins.springcloud.instruments.feign.SofaTracerFeignClient#execute` 方法里 `Request.create(...)...` 需要的 `request.requestBody()` 参数改为 `request.body()`, 以解决高版本 `requestBody()` 方法被废弃的问题。 2. 重构...

### Motivation: Currently, when convert to zipkin span, we lose the origin spanId and parentSpanId. So we cannot build the relation for this situation `zipkin app -> sofatracer app`. ###...

enhancement
cla:yes
size/XS

### Describe the bug SofaTracer对于Feign的实现中,SofaTracerFeignClient类execute方法内 对于UnsupportedOperationException异常是通过重建request对象实现的,其中的Body是通过获取request.requestBody()实现的 在OpenFeign 10.7.2版本及之前,这个实现是正确的 且通过代码注释来看,body和charset方法已经Deprecated,需要使用requestBody方法代替 https://github.com/OpenFeign/feign/blob/10.7.2/core/src/main/java/feign/Request.java 但在OpenFeign 10.7.3版本开始,requestBody这个方法被OpenFeign废弃了,方法直接消失了,而body和charset方法也去掉了Deprecated的注释 https://github.com/OpenFeign/feign/blob/10.7.3/core/src/main/java/feign/Request.java 从OpenFeign的issue来看,这是他们的一个错误造成的 https://github.com/OpenFeign/feign/issues/1194 https://github.com/OpenFeign/feign/issues/1308 虽然这个错误是OpenFeign导致的,但这个错误会导致SofaTracer直接无法兼容10.7.3及以上的版本.. ### Expected behavior 预期的结果是 能兼容OpenFeign之前及之后的版本 ### Actual behavior 实际的结果是 由于SofaTracerFeignClient中execute方法里的实现为 request = Request.create(request.httpMethod(),...

enhancement