traefik/docs/content/observability/tracing/datadog.md

107 lines
1.6 KiB
Markdown
Raw Normal View History

2019-09-02 10:18:04 +00:00
# Datadog
2019-06-27 22:16:04 +00:00
2019-09-02 10:18:04 +00:00
To enable the Datadog:
2019-06-27 22:16:04 +00:00
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
2019-09-02 10:18:04 +00:00
datadog: {}
2019-07-16 07:54:04 +00:00
```
```toml tab="File (TOML)"
[tracing]
[tracing.datadog]
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
2019-07-22 07:58:04 +00:00
--tracing.datadog=true
2019-06-27 22:16:04 +00:00
```
#### `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
```yaml tab="File (YAML)"
tracing:
2019-09-02 10:18:04 +00:00
datadog:
2019-07-16 07:54:04 +00:00
localAgentHostPort: 127.0.0.1:8126
```
```toml tab="File (TOML)"
[tracing]
[tracing.datadog]
localAgentHostPort = "127.0.0.1:8126"
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--tracing.datadog.localAgentHostPort=127.0.0.1:8126
2019-06-27 22:16:04 +00:00
```
#### `debug`
_Optional, Default=false_
2019-09-02 10:18:04 +00:00
Enable Datadog debug.
2019-06-27 22:16:04 +00:00
2019-07-16 07:54:04 +00:00
```yaml tab="File (YAML)"
tracing:
2019-09-02 10:18:04 +00:00
datadog:
2019-07-16 07:54:04 +00:00
debug: true
```
```toml tab="File (TOML)"
[tracing]
[tracing.datadog]
debug = true
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--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
```yaml tab="File (YAML)"
tracing:
2019-09-02 10:18:04 +00:00
datadog:
2019-07-16 07:54:04 +00:00
globalTag: sample
```
```toml tab="File (TOML)"
[tracing]
[tracing.datadog]
globalTag = "sample"
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--tracing.datadog.globalTag=sample
2019-06-27 22:16:04 +00:00
```
#### `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
```yaml tab="File (YAML)"
tracing:
2019-09-02 10:18:04 +00:00
datadog:
2019-07-16 07:54:04 +00:00
prioritySampling: true
```
```toml tab="File (TOML)"
[tracing]
[tracing.datadog]
prioritySampling = true
```
2019-06-27 22:16:04 +00:00
```bash tab="CLI"
--tracing.datadog.prioritySampling=true
```