Haystack

启用干草堆:

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

localAgentHost

要求,默认值=" 127.0.0.1"

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

[tracing]
  [tracing.haystack]
    localAgentHost = "127.0.0.1"
tracing:
  haystack:
    localAgentHost: 127.0.0.1
--tracing.haystack.localAgentHost=127.0.0.1

localAgentPort

要求,默认= 42699

本地代理端口指示报告程序在此端口上将跨度发送到haystack-agent.

[tracing]
  [tracing.haystack]
    localAgentPort = 42699
tracing:
  haystack:
    localAgentPort: 42699
--tracing.haystack.localAgentPort=42699

globalTag

可选,默认=空

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

[tracing]
  [tracing.haystack]
    globalTag = "sample:test"
tracing:
  haystack:
    globalTag: sample:test
--tracing.haystack.globalTag=sample:test

traceIDHeaderName

可选,默认=空

指定将用于存储跟踪ID的标头名称.

[tracing]
  [tracing.haystack]
    traceIDHeaderName = "sample"
tracing:
  haystack:
    traceIDHeaderName: sample
--tracing.haystack.traceIDHeaderName=sample

parentIDHeaderName

可选,默认=空

指定将用于存储范围ID的标题名称.

[tracing]
  [tracing.haystack]
    parentIDHeaderName = "sample"
tracing:
  haystack:
    parentIDHeaderName: "sample"
--tracing.haystack.parentIDHeaderName=sample

spanIDHeaderName

可选,默认=空

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

[tracing]
  [tracing.haystack]
    spanIDHeaderName = "sample:test"
tracing:
  haystack:
    spanIDHeaderName: "sample:test"
--tracing.haystack.spanIDHeaderName=sample:test

baggagePrefixHeaderName

可选,默认=空

指定标题名称前缀,该标题将用于在地图中存储行李物品.

[tracing]
  [tracing.haystack]
    baggagePrefixHeaderName = "sample"
tracing:
  haystack:
    baggagePrefixHeaderName: "sample"
--tracing.haystack.baggagePrefixHeaderName=sample