Haystack

To enable the Haystack tracer:

File (YAML)

  1. tracing:
  2. haystack: {}

File (TOML)

  1. [tracing]
  2. [tracing.haystack]

CLI

  1. --tracing.haystack=true

localAgentHost

Required, Default=”127.0.0.1”

Local Agent Host instructs reporter to send spans to the Haystack Agent at this address.

File (YAML)

  1. tracing:
  2. haystack:
  3. localAgentHost: 127.0.0.1

File (TOML)

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

CLI

  1. --tracing.haystack.localAgentHost=127.0.0.1

localAgentPort

Required, Default=35000

Local Agent Port instructs reporter to send spans to the Haystack Agent at this port.

File (YAML)

  1. tracing:
  2. haystack:
  3. localAgentPort: 35000

File (TOML)

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

CLI

  1. --tracing.haystack.localAgentPort=35000

globalTag

Optional, Default=empty

Applies shared key:value tag on all spans.

File (YAML)

  1. tracing:
  2. haystack:
  3. globalTag: sample:test

File (TOML)

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

CLI

  1. --tracing.haystack.globalTag=sample:test

traceIDHeaderName

Optional, Default=empty

Sets the header name used to store the trace ID.

File (YAML)

  1. tracing:
  2. haystack:
  3. traceIDHeaderName: Trace-ID

File (TOML)

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

CLI

  1. --tracing.haystack.traceIDHeaderName=Trace-ID

parentIDHeaderName

Optional, Default=empty

Sets the header name used to store the parent ID.

File (YAML)

  1. tracing:
  2. haystack:
  3. parentIDHeaderName: Parent-Message-ID

File (TOML)

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

CLI

  1. --tracing.haystack.parentIDHeaderName=Parent-Message-ID

spanIDHeaderName

Optional, Default=empty

Sets the header name used to store the span ID.

File (YAML)

  1. tracing:
  2. haystack:
  3. spanIDHeaderName: Message-ID

File (TOML)

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

CLI

  1. --tracing.haystack.spanIDHeaderName=Message-ID

baggagePrefixHeaderName

Optional, Default=empty

Sets the header name prefix used to store baggage items in a map.

File (YAML)

  1. tracing:
  2. haystack:
  3. baggagePrefixHeaderName: "sample"

File (TOML)

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

CLI

  1. --tracing.haystack.baggagePrefixHeaderName=sample