node.js - OTEL NodeJS SDK. How to sample 10% of traces (on client) but still export all traces with exceptionserrors? - Stack Ov

I am usingsampler: new ParentBasedSampler({root: new TraceIdRatioBasedSampler(options.sampleRatio),})

I am using

sampler: new ParentBasedSampler({
     root: new TraceIdRatioBasedSampler(options.sampleRatio),
}),

Which is ensuring that only 1% of traces is being sampled. But that also means that I see only 1% of exceptions/traces-with-exceptions

I want to be able to see all exceptions/traces-with-exceptions in my APM tool but I can't do it with tail-sampling (througtput reasons). I need to do it with head-sampling on client.

thank you

I tried all kinds of custom samplers and exporters on client but with no success.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744934695a4601947.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信