Zipkin

启用Zipkin:

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

httpEndpoint

必需,默认=" http:// localhost:9411 / api / v2 / spans"

Zipkin HTTP端点用于发送数据.

[tracing]
  [tracing.zipkin]
    httpEndpoint = "http://localhost:9411/api/v2/spans"
tracing:
  zipkin:
    httpEndpoint: http://localhost:9411/api/v2/spans
--tracing.zipkin.httpEndpoint=http://localhost:9411/api/v2/spans

sameSpan

可选,默认= false

使用Zipkin SameSpan RPC样式跟踪.

[tracing]
  [tracing.zipkin]
    sameSpan = true
tracing:
  zipkin:
    sameSpan: true
--tracing.zipkin.sameSpan=true

id128Bit

可选,默认= true

使用Zipkin 128位跟踪ID.

[tracing]
  [tracing.zipkin]
    id128Bit = false
tracing:
  zipkin:
    id128Bit: false
--tracing.zipkin.id128Bit=false

sampleRate

必需,默认= 1.0

跟踪请求的0.0到1.0之间的比率.

[tracing]
  [tracing.zipkin]
    sampleRate = 0.2
tracing:
  zipkin:
    sampleRate: 0.2
--tracing.zipkin.sampleRate=0.2