traefik/docs/content/observability/tracing/datadog.md
2023-03-21 16:45:33 +01:00

2.3 KiB

title description
Traefik Datadog Tracing Documentation Traefik Proxy supports Datadog for tracing. Read the technical documentation to enable Datadog for observability.

Datadog

To enable the Datadog tracer:

tracing:
  datadog: {}
[tracing]
  [tracing.datadog]
--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).

tracing:
  datadog:
    localAgentHostPort: localhost:8126
[tracing]
  [tracing.datadog]
    localAgentHostPort = "localhost:8126"
--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.

tracing:
  datadog:
    localAgentSocket: /var/run/datadog/apm.socket
[tracing]
  [tracing.datadog]
    localAgentSocket = "/var/run/datadog/apm.socket"
--tracing.datadog.localAgentSocket=/var/run/datadog/apm.socket

debug

Optional, Default=false

Enables Datadog debug.

tracing:
  datadog:
    debug: true
[tracing]
  [tracing.datadog]
    debug = true
--tracing.datadog.debug=true

globalTags

Optional, Default=empty

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

tracing:
  datadog:
    globalTags:
      tag1: foo
      tag2: bar
[tracing]
  [tracing.datadog]
    [tracing.datadog.globalTags]
      tag1 = "foo"
      tag2 = "bar"
--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.

tracing:
  datadog:
    prioritySampling: true
[tracing]
  [tracing.datadog]
    prioritySampling = true
--tracing.datadog.prioritySampling=true