2019-06-27 22:16:04 +00:00
|
|
|
# Jaeger
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
To enable the Jaeger tracer:
|
2019-06-27 22:16:04 +00:00
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger: {}
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger]
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-07-22 07:58:04 +00:00
|
|
|
--tracing.jaeger=true
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
!!! warning
|
2019-07-15 12:52:04 +00:00
|
|
|
Traefik is able to send data over the compact thrift protocol to the [Jaeger agent](https://www.jaegertracing.io/docs/deployment/#agent)
|
|
|
|
or a [Jaeger collector](https://www.jaegertracing.io/docs/deployment/#collectors).
|
2019-06-27 22:16:04 +00:00
|
|
|
|
2021-06-18 16:10:05 +00:00
|
|
|
!!! info
|
|
|
|
All Jaeger configuration can be overridden by [environment variables](https://github.com/jaegertracing/jaeger-client-go#environment-variables)
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
#### `samplingServerURL`
|
|
|
|
|
|
|
|
_Required, Default="http://localhost:5778/sampling"_
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
Address of the Jaeger Agent HTTP sampling server.
|
2019-06-27 22:16:04 +00:00
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger:
|
|
|
|
samplingServerURL: http://localhost:5778/sampling
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger]
|
|
|
|
samplingServerURL = "http://localhost:5778/sampling"
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.jaeger.samplingServerURL=http://localhost:5778/sampling
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `samplingType`
|
|
|
|
|
|
|
|
_Required, Default="const"_
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
Type of the sampler.
|
|
|
|
|
|
|
|
Valid values are:
|
|
|
|
|
|
|
|
- `const`
|
|
|
|
- `probabilistic`
|
|
|
|
- `rateLimiting`
|
2019-06-27 22:16:04 +00:00
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger:
|
|
|
|
samplingType: const
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger]
|
|
|
|
samplingType = "const"
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.jaeger.samplingType=const
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `samplingParam`
|
|
|
|
|
|
|
|
_Required, Default=1.0_
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
Value passed to the sampler.
|
2019-06-27 22:16:04 +00:00
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
Valid values are:
|
2019-06-27 22:16:04 +00:00
|
|
|
|
|
|
|
- for `const` sampler, 0 or 1 for always false/true respectively
|
|
|
|
- for `probabilistic` sampler, a probability between 0 and 1
|
|
|
|
- for `rateLimiting` sampler, the number of spans per second
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger:
|
|
|
|
samplingParam: 1.0
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger]
|
|
|
|
samplingParam = 1.0
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.jaeger.samplingParam=1.0
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `localAgentHostPort`
|
|
|
|
|
|
|
|
_Required, Default="127.0.0.1:6831"_
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
Local Agent Host Port instructs the reporter to send spans to the Jaeger Agent at this address (host:port).
|
2019-06-27 22:16:04 +00:00
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger:
|
|
|
|
localAgentHostPort: 127.0.0.1:6831
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger]
|
|
|
|
localAgentHostPort = "127.0.0.1:6831"
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.jaeger.localAgentHostPort=127.0.0.1:6831
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `gen128Bit`
|
|
|
|
|
|
|
|
_Optional, Default=false_
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
Generates 128 bits trace IDs, compatible with OpenCensus.
|
2019-06-27 22:16:04 +00:00
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger:
|
|
|
|
gen128Bit: true
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger]
|
|
|
|
gen128Bit = true
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--tracing.jaeger.gen128Bit
|
|
|
|
```
|
|
|
|
|
|
|
|
#### `propagation`
|
|
|
|
|
|
|
|
_Required, Default="jaeger"_
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
Sets the propagation header type.
|
|
|
|
|
|
|
|
Valid values are:
|
2019-06-27 22:16:04 +00:00
|
|
|
|
|
|
|
- `jaeger`, jaeger's default trace header.
|
|
|
|
- `b3`, compatible with OpenZipkin
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger:
|
|
|
|
propagation: jaeger
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger]
|
|
|
|
propagation = "jaeger"
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.jaeger.propagation=jaeger
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `traceContextHeaderName`
|
|
|
|
|
|
|
|
_Required, Default="uber-trace-id"_
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
HTTP header name used to propagate tracing context.
|
2019-06-27 22:16:04 +00:00
|
|
|
This must be in lower-case to avoid mismatches when decoding incoming headers.
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger:
|
|
|
|
traceContextHeaderName: uber-trace-id
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger]
|
|
|
|
traceContextHeaderName = "uber-trace-id"
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.jaeger.traceContextHeaderName=uber-trace-id
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
2019-07-15 12:52:04 +00:00
|
|
|
|
2020-08-19 13:50:03 +00:00
|
|
|
### disableAttemptReconnecting
|
|
|
|
|
|
|
|
_Optional, Default=true_
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
Disables the UDP connection helper that periodically re-resolves the agent's hostname and reconnects if there was a change.
|
2020-08-19 13:50:03 +00:00
|
|
|
Enabling the re-resolving of UDP address make the client more robust in Kubernetes deployments.
|
|
|
|
|
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger:
|
|
|
|
disableAttemptReconnecting: false
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger]
|
|
|
|
disableAttemptReconnecting = false
|
|
|
|
```
|
|
|
|
|
2020-08-19 13:50:03 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--tracing.jaeger.disableAttemptReconnecting=false
|
|
|
|
```
|
|
|
|
|
2019-07-15 12:52:04 +00:00
|
|
|
### `collector`
|
|
|
|
#### `endpoint`
|
|
|
|
|
|
|
|
_Optional, Default=""_
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
Collector Endpoint instructs the reporter to send spans to the Jaeger Collector at this URL.
|
2019-07-15 12:52:04 +00:00
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger:
|
|
|
|
collector:
|
|
|
|
endpoint: http://127.0.0.1:14268/api/traces?format=jaeger.thrift
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger.collector]
|
|
|
|
endpoint = "http://127.0.0.1:14268/api/traces?format=jaeger.thrift"
|
|
|
|
```
|
|
|
|
|
2019-07-15 12:52:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.jaeger.collector.endpoint=http://127.0.0.1:14268/api/traces?format=jaeger.thrift
|
2019-07-15 12:52:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `user`
|
|
|
|
|
|
|
|
_Optional, Default=""_
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
User instructs the reporter to include a user for basic HTTP authentication when sending spans to the Jaeger Collector.
|
2019-07-15 12:52:04 +00:00
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger:
|
|
|
|
collector:
|
|
|
|
user: my-user
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger.collector]
|
|
|
|
user = "my-user"
|
|
|
|
```
|
|
|
|
|
2019-07-15 12:52:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.jaeger.collector.user=my-user
|
2019-07-15 12:52:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### `password`
|
|
|
|
|
|
|
|
_Optional, Default=""_
|
|
|
|
|
2021-09-29 08:40:14 +00:00
|
|
|
Password instructs the reporter to include a password for basic HTTP authentication when sending spans to the Jaeger Collector.
|
2019-07-15 12:52:04 +00:00
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
jaeger:
|
|
|
|
collector:
|
|
|
|
password: my-password
|
|
|
|
```
|
|
|
|
|
2021-06-18 22:08:08 +00:00
|
|
|
```toml tab="File (TOML)"
|
|
|
|
[tracing]
|
|
|
|
[tracing.jaeger.collector]
|
|
|
|
password = "my-password"
|
|
|
|
```
|
|
|
|
|
2019-07-15 12:52:04 +00:00
|
|
|
```bash tab="CLI"
|
2019-11-19 09:18:05 +00:00
|
|
|
--tracing.jaeger.collector.password=my-password
|
2019-07-15 12:52:04 +00:00
|
|
|
```
|