Datadog

要启用Datadog:

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

localAgentHostPort

必需,默认=" 127.0.0.1:8126"

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

[tracing]
  [tracing.datadog]
    localAgentHostPort = "127.0.0.1:8126"
tracing:
  datadog:
    localAgentHostPort: 127.0.0.1:8126
--tracing.datadog.localAgentHostPort=127.0.0.1:8126

debug

可选,默认= false

启用Datadog调试.

[tracing]
  [tracing.datadog]
    debug = true
tracing:
  datadog:
    debug: true
--tracing.datadog.debug=true

globalTag

可选,默认=空

将共享标签以Key:Value的形式应用于所有跟踪.

[tracing]
  [tracing.datadog]
    globalTag = "sample"
tracing:
  datadog:
    globalTag: sample
--tracing.datadog.globalTag=sample

prioritySampling

可选,默认= false

启用优先采样. 使用分布式跟踪时,必须启用此选项才能对分布式跟踪的所有部分进行采样.

[tracing]
  [tracing.datadog]
    prioritySampling = true
tracing:
  datadog:
    prioritySampling: true
--tracing.datadog.prioritySampling=true