2019-06-27 22:16:04 +00:00
|
|
|
# Zipkin
|
|
|
|
|
|
|
|
To enable the Zipkin:
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.zipkin]
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
zipkin: {}
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-07-22 07:58:04 +00:00
|
|
|
--tracing.zipkin=true
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `httpEndpoint`
|
|
|
|
|
2019-09-03 09:52:04 +00:00
|
|
|
_Required, Default="http://localhost:9411/api/v2/spans"_
|
2019-06-27 22:16:04 +00:00
|
|
|
|
|
|
|
Zipkin HTTP endpoint used to send data.
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.zipkin]
|
2019-09-03 09:52:04 +00:00
|
|
|
httpEndpoint = "http://localhost:9411/api/v2/spans"
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
zipkin:
|
2019-09-03 09:52:04 +00:00
|
|
|
httpEndpoint: http://localhost:9411/api/v2/spans
|
2019-07-16 07:54:04 +00:00
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.zipkin.httpEndpoint=http://localhost:9411/api/v2/spans
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `sameSpan`
|
|
|
|
|
|
|
|
_Optional, Default=false_
|
|
|
|
|
|
|
|
Use Zipkin SameSpan RPC style traces.
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.zipkin]
|
|
|
|
sameSpan = true
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
zipkin:
|
|
|
|
sameSpan: true
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--tracing.zipkin.sameSpan=true
|
|
|
|
```
|
|
|
|
|
|
|
|
#### `id128Bit`
|
|
|
|
|
|
|
|
_Optional, Default=true_
|
|
|
|
|
2019-09-03 09:52:04 +00:00
|
|
|
Use Zipkin 128 bit trace IDs.
|
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.zipkin]
|
|
|
|
id128Bit = false
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
zipkin:
|
|
|
|
id128Bit: false
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--tracing.zipkin.id128Bit=false
|
|
|
|
```
|
|
|
|
|
|
|
|
#### `sampleRate`
|
|
|
|
|
|
|
|
_Required, Default=1.0_
|
|
|
|
|
|
|
|
The rate between 0.0 and 1.0 of requests to trace.
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
|
|
|
[tracing.zipkin]
|
|
|
|
sampleRate = 0.2
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
zipkin:
|
|
|
|
sampleRate: 0.2
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.zipkin.sampleRate=0.2
|
2019-09-03 09:52:04 +00:00
|
|
|
```
|