Haystack

To enable the Haystack:

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

localAgentHost

Require, Default="127.0.0.1"

Local Agent Host instructs reporter to send spans to haystack-agent at this address.

  1. [tracing]
  2. [tracing.haystack]
  3. localAgentHost = "127.0.0.1"
  1. tracing:
  2. haystack:
  3. localAgentHost: 127.0.0.1
  1. --tracing.haystack.localAgentHost=127.0.0.1

localAgentPort

Require, Default=35000

Local Agent port instructs reporter to send spans to the haystack-agent at this port.

  1. [tracing]
  2. [tracing.haystack]
  3. localAgentPort = 35000
  1. tracing:
  2. haystack:
  3. localAgentPort: 35000
  1. --tracing.haystack.localAgentPort=35000

globalTag

Optional, Default=empty

Apply shared tag in a form of Key:Value to all the traces.

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

traceIDHeaderName

Optional, Default=empty

Specifies the header name that will be used to store the trace ID.

  1. [tracing]
  2. [tracing.haystack]
  3. traceIDHeaderName = "Trace-ID"
  1. tracing:
  2. haystack:
  3. traceIDHeaderName: Trace-ID
  1. --tracing.haystack.traceIDHeaderName=Trace-ID

parentIDHeaderName

Optional, Default=empty

Specifies the header name that will be used to store the parent ID.

  1. [tracing]
  2. [tracing.haystack]
  3. parentIDHeaderName = "Parent-Message-ID"
  1. tracing:
  2. haystack:
  3. parentIDHeaderName: Parent-Message-ID
  1. --tracing.haystack.parentIDHeaderName=Parent-Message-ID

spanIDHeaderName

Optional, Default=empty

Specifies the header name that will be used to store the span ID.

  1. [tracing]
  2. [tracing.haystack]
  3. spanIDHeaderName = "Message-ID"
  1. tracing:
  2. haystack:
  3. spanIDHeaderName: Message-ID
  1. --tracing.haystack.spanIDHeaderName=Message-ID

baggagePrefixHeaderName

Optional, Default=empty

Specifies the header name prefix that will be used to store baggage items in a map.

  1. [tracing]
  2. [tracing.haystack]
  3. baggagePrefixHeaderName = "sample"
  1. tracing:
  2. haystack:
  3. baggagePrefixHeaderName: "sample"
  1. --tracing.haystack.baggagePrefixHeaderName=sample