Datadog
To enable the Datadog tracer:
File (YAML)
tracing:
datadog: {}
File (TOML)
[tracing]
[tracing.datadog]
CLI
--tracing.datadog=true
localAgentHostPort
Optional, Default=”localhost:8126”
Local Agent Host Port instructs the reporter to send spans to the Datadog Agent at this address (host:port).
File (YAML)
tracing:
datadog:
localAgentHostPort: localhost:8126
File (TOML)
[tracing]
[tracing.datadog]
localAgentHostPort = "localhost:8126"
CLI
--tracing.datadog.localAgentHostPort=localhost:8126
localAgentSocket
Optional, Default=””
Local Agent Socket instructs the reporter to send spans to the Datadog Agent at this UNIX socket.
File (YAML)
tracing:
datadog:
localAgentSocket: /var/run/datadog/apm.socket
File (TOML)
[tracing]
[tracing.datadog]
localAgentSocket = "/var/run/datadog/apm.socket"
CLI
--tracing.datadog.localAgentSocket=/var/run/datadog/apm.socket
debug
Optional, Default=false
Enables Datadog debug.
File (YAML)
tracing:
datadog:
debug: true
File (TOML)
[tracing]
[tracing.datadog]
debug = true
CLI
--tracing.datadog.debug=true
globalTag
Deprecated in favor of the globalTags option.
Optional, Default=empty
Applies a shared key:value tag on all spans.
File (YAML)
tracing:
datadog:
globalTag: sample
File (TOML)
[tracing]
[tracing.datadog]
globalTag = "sample"
CLI
--tracing.datadog.globalTag=sample
globalTags
Optional, Default=empty
Applies a list of shared key:value tags on all spans.
File (YAML)
tracing:
datadog:
globalTags:
tag1: foo
tag2: bar
File (TOML)
[tracing]
[tracing.datadog]
[tracing.datadog.globalTags]
tag1 = "foo"
tag2 = "bar"
CLI
--tracing.datadog.globalTags.tag1=foo
--tracing.datadog.globalTags.tag2=bar
prioritySampling
Optional, Default=false
Enables priority sampling. When using distributed tracing, this option must be enabled in order to get all the parts of a distributed trace sampled.
File (YAML)
tracing:
datadog:
prioritySampling: true
File (TOML)
[tracing]
[tracing.datadog]
prioritySampling = true
CLI
--tracing.datadog.prioritySampling=true