2019-06-27 22:16:04 +00:00
|
|
|
# Haystack
|
|
|
|
|
|
|
|
To enable the Haystack:
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.haystack]
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
haystack: {}
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-07-22 07:58:04 +00:00
|
|
|
--tracing.haystack=true
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `localAgentHost`
|
|
|
|
|
|
|
|
_Require, Default="127.0.0.1"_
|
|
|
|
|
|
|
|
Local Agent Host instructs reporter to send spans to haystack-agent at this address.
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.haystack]
|
|
|
|
localAgentHost = "127.0.0.1"
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
haystack:
|
|
|
|
localAgentHost: 127.0.0.1
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.haystack.localAgentHost=127.0.0.1
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `localAgentPort`
|
|
|
|
|
2020-02-26 10:10:06 +00:00
|
|
|
_Require, Default=35000_
|
2019-06-27 22:16:04 +00:00
|
|
|
|
|
|
|
Local Agent port instructs reporter to send spans to the haystack-agent at this port.
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.haystack]
|
2020-02-26 10:10:06 +00:00
|
|
|
localAgentPort = 35000
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
haystack:
|
2020-02-26 10:10:06 +00:00
|
|
|
localAgentPort: 35000
|
2019-07-16 07:54:04 +00:00
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2020-02-26 10:10:06 +00:00
|
|
|
--tracing.haystack.localAgentPort=35000
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `globalTag`
|
|
|
|
|
|
|
|
_Optional, Default=empty_
|
|
|
|
|
|
|
|
Apply shared tag in a form of Key:Value to all the traces.
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.haystack]
|
|
|
|
globalTag = "sample:test"
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
haystack:
|
|
|
|
globalTag: sample:test
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.haystack.globalTag=sample:test
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `traceIDHeaderName`
|
|
|
|
|
|
|
|
_Optional, Default=empty_
|
|
|
|
|
|
|
|
Specifies the header name that will be used to store the trace ID.
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.haystack]
|
2020-02-26 10:10:06 +00:00
|
|
|
traceIDHeaderName = "Trace-ID"
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
haystack:
|
2020-02-26 10:10:06 +00:00
|
|
|
traceIDHeaderName: Trace-ID
|
2019-07-16 07:54:04 +00:00
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2020-02-26 10:10:06 +00:00
|
|
|
--tracing.haystack.traceIDHeaderName=Trace-ID
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `parentIDHeaderName`
|
|
|
|
|
|
|
|
_Optional, Default=empty_
|
|
|
|
|
2020-02-26 10:10:06 +00:00
|
|
|
Specifies the header name that will be used to store the parent ID.
|
2019-06-27 22:16:04 +00:00
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.haystack]
|
2020-02-26 10:10:06 +00:00
|
|
|
parentIDHeaderName = "Parent-Message-ID"
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
haystack:
|
2020-02-26 10:10:06 +00:00
|
|
|
parentIDHeaderName: Parent-Message-ID
|
2019-07-16 07:54:04 +00:00
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2020-02-26 10:10:06 +00:00
|
|
|
--tracing.haystack.parentIDHeaderName=Parent-Message-ID
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `spanIDHeaderName`
|
|
|
|
|
|
|
|
_Optional, Default=empty_
|
|
|
|
|
2020-02-26 10:10:06 +00:00
|
|
|
Specifies the header name that will be used to store the span ID.
|
2019-06-27 22:16:04 +00:00
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.haystack]
|
2020-02-26 10:10:06 +00:00
|
|
|
spanIDHeaderName = "Message-ID"
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
haystack:
|
2020-02-26 10:10:06 +00:00
|
|
|
spanIDHeaderName: Message-ID
|
2019-07-16 07:54:04 +00:00
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2020-02-26 10:10:06 +00:00
|
|
|
--tracing.haystack.spanIDHeaderName=Message-ID
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `baggagePrefixHeaderName`
|
|
|
|
|
|
|
|
_Optional, Default=empty_
|
|
|
|
|
|
|
|
Specifies the header name prefix that will be used to store baggage items in a map.
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.haystack]
|
|
|
|
baggagePrefixHeaderName = "sample"
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
haystack:
|
|
|
|
baggagePrefixHeaderName: "sample"
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.haystack.baggagePrefixHeaderName=sample
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|