How to Export Build Traces to Datadog
Datadog ingests CI spans either through its native CI Visibility integration or through the Collector datadog exporter.
For GitHub Actions, the simplest path is Datadog CI Visibility, which reads runs through a GitHub App. For a Collector-based pipeline, use the datadog exporter with your API key and site (for example datadoghq.com or datadoghq.eu).
Steps
- Pick CI Visibility (GitHub App) or the Collector datadog exporter.
- Provide
DD_API_KEYandDD_SITEto whichever path you use. - Confirm pipeline executions appear under CI Visibility to Pipelines.
Collector exporter
otel-collector.yaml
exporters:
datadog:
api:
key: ${env:DD_API_KEY}
site: datadoghq.com
service:
pipelines:
traces:
receivers: [otlp]
exporters: [datadog]Gotchas
- CI Visibility bills separately from APM; check which product your plan includes.
- The datadog exporter needs the API key at startup, so inject it as an env var, not a file path.
Related guides
How to Export Build Traces to Jaeger or Grafana TempoSend CI build traces to Jaeger or Grafana Tempo through an OpenTelemetry Collector, routing OTLP spans from t…
How to Annotate Deploys in Grafana and DatadogAdd deploy annotations to Grafana and Datadog from the pipeline using their annotation APIs, so a vertical ma…