Comments (4)
比如只要任意一个span包含了error=true的tag, 整个trace应该被收集采样
@quaff 这里可以通过我们提供的自定义的采样规则接口,然后自己实现这个规则达成目标哈。
还需要支持已采样的trace里面可以让用户定义规则来删掉某些span, 比如跨度时间小于某个值, 这种很小的span通常对跟踪分析没多大作用
@quaff 同样,这个也是可以作为一个采样规则实现完成目标,开发者在构建 Tracer 的时候,可以传递不同的采样规则策略来达到目标。采样策略上,在这个链路上,应该保持一致,否则也会出现链路不全的情况。
欢迎给我们 PR 来丰富我们的采样规则哈。感谢。
from sofa-tracer.
你们提供的采样规则接口, 只能根据operation和traceId作为依据判断, 没有办法深入到具体的span里面去, 要实现我提到的采样规则, 这个接口是不够的.
链路不全的情况是要靠二次加工来实现, 如果是叶子节点直接丢弃就可以, 如果是中间节点则把子节点往上移, 把父spanId设置为爷spanId.
from sofa-tracer.
有办法深入到具体的span里面
@quaff 是的。我们会在尽快优化掉这个问题。 具体 issue 见这里
@glmapper 关注
from sofa-tracer.
采样方案:
1、在sofaTracer进行reportSpan操作时,如果当前span的父span不存在,则认为当前span是rootSpan,这里将当前采样算法计算得到的isSampled值塞到SofaTracerSpanContext中。
2、在执行inject操作时,carrier 中增加采样透传数据。
3、采样配置参数:
- a、采样策略名称 samplerName,该配置与Sampler中的TYPE保持一致
- b、采样率 samplerPercentage,在使用SofaTracerPercentageBasedSampler采样策略时使用。
- c、自定义采样规则 类全限定名 samplerCustomRuleClassName,当采样策略为 OpenRulesSampler 时必须配置。
from sofa-tracer.
Related Issues (20)
- OpenFeign 10.7.3+版本兼容问题 HOT 1
- 不使用sofa boot,使用spring boot parent,依赖tracer-sofa-boot-starter时启动报错 HOT 6
- does support dubbo async invoke??? HOT 1
- Redis plugin未恢复paren span,导致span id的层级无限增长
- Open Source Promotion Plan 2022 - upgrade opentracing api version & adapter opentelemetry api HOT 5
- SofaTracer如何支持Agent接入方式 HOT 2
- spring cloud 3中的openfeign支持 HOT 2
- spring cloud gateway webflux集成问题 HOT 1
- 基于SOFAArk实现类加载器加载外置的SofaTracer的Spring Boot Starter插件 HOT 4
- datasource 模块如何记录完整的 sql 语句,包含参数的那种
- sofatracer的tracerId不一定为30位 HOT 1
- sofa-tracer-httpclient-plugin使用httpclient连接池,请求发生异常时,内存泄漏,spanId无限变长 HOT 19
- sofa-tracer-kafkamq-plugin支持ProducerListener解决方案 HOT 1
- CI failed in the master branch
- classNotFound SofaTracerLoadBalancedFeignClient HOT 1
- 是否支持 SOFA-TraceId 由前端生成放到header中请求
- sofa-tracer redis plugin未串联父span
- dubbo 2.7 使用问题 HOT 1
- feat: Delegate java.util.concurrent.Executor
- springboot v3 版本 启动报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sofa-tracer.