2019-06-27 22:16:04 +00:00
|
|
|
# DataDog
|
|
|
|
|
|
|
|
To enable the DataDog:
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
2019-07-01 09:30:05 +00:00
|
|
|
[tracing.dataDog]
|
2019-06-27 22:16:04 +00:00
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
dataDog: {}
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--tracing
|
|
|
|
--tracing.datadog
|
|
|
|
```
|
|
|
|
|
|
|
|
#### `localAgentHostPort`
|
|
|
|
|
|
|
|
_Required, Default="127.0.0.1:8126"_
|
|
|
|
|
|
|
|
Local Agent Host Port instructs reporter to send spans to datadog-tracing-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]
|
2019-07-01 09:30:05 +00:00
|
|
|
[tracing.dataDog]
|
2019-06-27 22:16:04 +00:00
|
|
|
localAgentHostPort = "127.0.0.1:8126"
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
dataDog:
|
|
|
|
localAgentHostPort: 127.0.0.1:8126
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--tracing
|
|
|
|
--tracing.datadog.localAgentHostPort="127.0.0.1:8126"
|
|
|
|
```
|
|
|
|
|
|
|
|
#### `debug`
|
|
|
|
|
|
|
|
_Optional, Default=false_
|
|
|
|
|
|
|
|
Enable DataDog debug.
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
2019-07-01 09:30:05 +00:00
|
|
|
[tracing.dataDog]
|
2019-06-27 22:16:04 +00:00
|
|
|
debug = true
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
dataDog:
|
|
|
|
debug: true
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--tracing
|
|
|
|
--tracing.datadog.debug=true
|
|
|
|
```
|
|
|
|
|
|
|
|
#### `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]
|
2019-07-01 09:30:05 +00:00
|
|
|
[tracing.dataDog]
|
2019-06-27 22:16:04 +00:00
|
|
|
globalTag = "sample"
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
dataDog:
|
|
|
|
globalTag: sample
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--tracing
|
|
|
|
--tracing.datadog.globalTag="sample"
|
|
|
|
```
|
|
|
|
|
|
|
|
#### `prioritySampling`
|
|
|
|
|
|
|
|
_Optional, Default=false_
|
|
|
|
|
|
|
|
Enable priority sampling. When using distributed tracing,
|
|
|
|
this option must be enabled in order to get all the parts of a distributed trace sampled.
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```toml tab="File (TOML)"
|
2019-06-27 22:16:04 +00:00
|
|
|
[tracing]
|
2019-07-01 09:30:05 +00:00
|
|
|
[tracing.dataDog]
|
2019-06-27 22:16:04 +00:00
|
|
|
prioritySampling = true
|
|
|
|
```
|
|
|
|
|
2019-07-16 07:54:04 +00:00
|
|
|
```yaml tab="File (YAML)"
|
|
|
|
tracing:
|
|
|
|
dataDog:
|
|
|
|
prioritySampling: true
|
|
|
|
```
|
|
|
|
|
2019-06-27 22:16:04 +00:00
|
|
|
```bash tab="CLI"
|
|
|
|
--tracing
|
|
|
|
--tracing.datadog.prioritySampling=true
|
|
|
|
```
|