Datadog

To enable the Datadog tracer:

File (YAML)

  1. tracing:
  2. datadog: {}

File (TOML)

  1. [tracing]
  2. [tracing.datadog]

CLI

  1. --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)

  1. tracing:
  2. datadog:
  3. localAgentHostPort: localhost:8126

File (TOML)

  1. [tracing]
  2. [tracing.datadog]
  3. localAgentHostPort = "localhost:8126"

CLI

  1. --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)

  1. tracing:
  2. datadog:
  3. localAgentSocket: /var/run/datadog/apm.socket

File (TOML)

  1. [tracing]
  2. [tracing.datadog]
  3. localAgentSocket = "/var/run/datadog/apm.socket"

CLI

  1. --tracing.datadog.localAgentSocket=/var/run/datadog/apm.socket

debug

Optional, Default=false

Enables Datadog debug.

File (YAML)

  1. tracing:
  2. datadog:
  3. debug: true

File (TOML)

  1. [tracing]
  2. [tracing.datadog]
  3. debug = true

CLI

  1. --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)

  1. tracing:
  2. datadog:
  3. globalTag: sample

File (TOML)

  1. [tracing]
  2. [tracing.datadog]
  3. globalTag = "sample"

CLI

  1. --tracing.datadog.globalTag=sample

globalTags

Optional, Default=empty

Applies a list of shared key:value tags on all spans.

File (YAML)

  1. tracing:
  2. datadog:
  3. globalTags:
  4. tag1: foo
  5. tag2: bar

File (TOML)

  1. [tracing]
  2. [tracing.datadog]
  3. [tracing.datadog.globalTags]
  4. tag1 = "foo"
  5. tag2 = "bar"

CLI

  1. --tracing.datadog.globalTags.tag1=foo
  2. --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)

  1. tracing:
  2. datadog:
  3. prioritySampling: true

File (TOML)

  1. [tracing]
  2. [tracing.datadog]
  3. prioritySampling = true

CLI

  1. --tracing.datadog.prioritySampling=true