Jaeger

要启用Jaeger:

[tracing]
  [tracing.jaeger]
tracing:
  jaeger: {}
--tracing.jaeger=true

Warning

Traefik能够通过紧凑型节俭协议将数据发送到Jaeger代理Jaeger收集器 .

samplingServerURL

必需,默认=" http:// localhost:5778 / sampling"

采样服务器URL是jaeger-agent的HTTP采样服务器的地址.

[tracing]
  [tracing.jaeger]
    samplingServerURL = "http://localhost:5778/sampling"
tracing:
  jaeger:
    samplingServerURL: http://localhost:5778/sampling
--tracing.jaeger.samplingServerURL=http://localhost:5778/sampling

samplingType

必需,默认=" const"

采样类型指定采样器的类型: constprobabilisticrateLimiting .

[tracing]
  [tracing.jaeger]
    samplingType = "const"
tracing:
  jaeger:
    samplingType: const
--tracing.jaeger.samplingType=const

samplingParam

必需,默认= 1.0

采样参数是传递给采样器的值.

参数字段的有效值为:

  • 对于const采样器,分别为0或1分别始终为false / true
  • 对于probabilistic采样器,概率介于0和1之间
  • 对于rateLimiting采样器,每秒的跨度数
[tracing]
  [tracing.jaeger]
    samplingParam = 1.0
tracing:
  jaeger:
    samplingParam: 1.0
--tracing.jaeger.samplingParam=1.0

localAgentHostPort

必需,默认=" 127.0.0.1:6831"

本地代理主机端口指示记者将跨度发送到该地址的jaeger-agent.

[tracing]
  [tracing.jaeger]
    localAgentHostPort = "127.0.0.1:6831"
tracing:
  jaeger:
    localAgentHostPort: 127.0.0.1:6831
--tracing.jaeger.localAgentHostPort=127.0.0.1:6831

gen128Bit

可选,默认= false

生成与OpenCensus兼容的128位跟踪ID.

[tracing]
  [tracing.jaeger]
    gen128Bit = true
tracing:
  jaeger:
    gen128Bit: true
--tracing.jaeger.gen128Bit

propagation

必需,默认=" jaeger"

设置传播头类型. 可以是:

  • jaeger ,jaeger的默认跟踪标头.
  • b3 ,与OpenZipkin兼容
[tracing]
  [tracing.jaeger]
    propagation = "jaeger"
tracing:
  jaeger:
    propagation: jaeger
--tracing.jaeger.propagation=jaeger

traceContextHeaderName

必需,默认=" uber-trace-id"

跟踪上下文标头名称是用于传播跟踪上下文的http标头名称. 此位必须小写,以免在解码传入报头时发生不匹配.

[tracing]
  [tracing.jaeger]
    traceContextHeaderName = "uber-trace-id"
tracing:
  jaeger:
    traceContextHeaderName: uber-trace-id
--tracing.jaeger.traceContextHeaderName=uber-trace-id

collector

endpoint

可选,默认值=""

收集器端点指示记者通过此URL将跨度发送到jaeger-collector.

[tracing]
  [tracing.jaeger.collector]
    endpoint = "http://127.0.0.1:14268/api/traces?format=jaeger.thrift"
tracing:
  jaeger:
    collector:
        endpoint: http://127.0.0.1:14268/api/traces?format=jaeger.thrift
--tracing.jaeger.collector.endpoint=http://127.0.0.1:14268/api/traces?format=jaeger.thrift

user

可选,默认值=""

当将跨度发送到jaeger-collector时,用户指示报告者包括用于基本http身份验证的用户.

[tracing]
  [tracing.jaeger.collector]
    user = "my-user"
tracing:
  jaeger:
    collector:
        user: my-user
--tracing.jaeger.collector.user=my-user

password

可选,默认值=""

密码指示记者在将跨度发送到jaeger-collector时,包括用于基本http认证的密码.

[tracing]
  [tracing.jaeger.collector]
    password = "my-password"
tracing:
  jaeger:
    collector:
        password: my-password
--tracing.jaeger.collector.password=my-password