Skip to content

采样Sampling介绍

laziobird edited this page Feb 24, 2022 · 4 revisions

Collector 日志调试

services:
  telemetry:
    logs:
      level:"debug"

采样 Sampling

只上报异常链路采样Demo:http://106.14.209.9:8080/error 错误URL示例

processors:
  batch:
  tail_sampling:
    ##decision_wait: 10s
    ##num_traces: 100
    ##expected_new_traces_per_sec: 100
    policies:
      [
          {
            name: test-policy-5,
            type: status_code,
            status_code: {status_codes: [ERROR]}
          }
      ]
service:
  extensions: [pprof,health_check]
  pipelines:
    traces:
      receivers: [otlp]
      processors: [tail_sampling]
      exporters: [jaeger]

效果

采样前

采样前

只采样异常链路

只采样异常链路

联系

如果有什么疑问和建议,欢迎提交issues,我会第一时间回复

Clone this wiki locally