Skip to main content
Integrations · Datadog
Guild works with Datadog in two directions. Guild sends the traces and metrics from your agents’ runs to your Datadog account, so you can watch sessions, LLM calls, and errors in Datadog APM. Your agents can also read Datadog monitors, metrics, logs, and events, so an agent can triage an alert with the same data your on-call team sees. Both use keys that Guild stores server-side, so agent code never sees them.

Book a demo

See how teams monitor and govern agents with Datadog.

Talk to sales

Get access to Guild, then connect Datadog to your account.

What the Datadog integration covers

You can use either one on its own.

How it works

1

Find your Datadog site

Your site is in the URL you sign in at. For example, app.datadoghq.eu is the EU1 site, datadoghq.eu.
2

Forward traces

In Access & setup > Observability, choose Datadog, pick your site, and paste a Datadog API key. Guild exports your agents’ spans and metrics to Datadog over OTLP.
3

Give agents Datadog tools

In Access & setup > Credentials, connect Datadog with an API key, an application key, and your site. Then add the Datadog tools to an agent.

Why Datadog access needs governing in Guild

A Datadog application key carries the permissions of the user who created it. Guild’s credential proxy holds both keys server-side and injects them per request, so they never reach agent code, prompts, or containers. The agent tools are read-only: none of them change monitors, dashboards, or data in Datadog. Credential policies let you narrow access further. Write ALLOW and DENY rules by operation name, agent, or workspace, for example to let an alert-triage agent read monitors but not search logs. You can scope the credential itself to the whole account, a single workspace, a specific member, or one installed agent, as described in Credentials.

Forward traces to Datadog

Trace forwarding sends the OpenTelemetry traces and metrics from your agents’ runs to Datadog. It’s an account setting. In an organization, only admins can change it.

Set up

You need your Datadog site and a Datadog API key. Create an API key in Datadog under Organization Settings > API Keys. Forwarding doesn’t use an application key.
1

Choose the account

Use the account switcher at the top of the left nav to choose your personal account or an organization.
2

Open Observability

Click Access & setup in the left nav, then Observability.
3

Choose Datadog

Click Configure provider if nothing is set up yet, or Edit if one is. Under Provider, select Datadog.
4

Choose your site

Under Site, select the site your organization signs in to.
5

Enter your API key

Under API key, paste your Datadog API key.
6

Save

Click Save. The page shows Datadog, the site, and a masked API key.
Guild sends traces to https://otlp.{site}/v1/traces and metrics to https://otlp.{site}/v1/metrics, with your API key in the dd-api-key header. It also asks Datadog to compute APM trace metrics, such as request counts and latency, from the spans.

What you see in Datadog

Guild forwards only the spans and metrics from sessions in workspaces your account owns. Spans follow the OpenTelemetry GenAI semantic conventions, and each one carries Guild attributes you can filter and group on in Datadog: See Observability for the full attribute list. To follow a session from Datadog back to Guild, open it at https://app.guild.ai/sessions/{guild.session}.

Operate it

  • Rotate the API key. Create a new key in Datadog. In Guild, click Edit, paste the new key, and click Save. Then revoke the old key in Datadog.
  • Move to another site. Click Edit, select the new site, paste an API key from that site, and click Save.
  • Switch providers. An account forwards to one provider at a time. Choosing Splunk under Edit replaces the Datadog settings.
  • Stop forwarding. Click Delete, then confirm. Deleting can’t be undone: to start again, enter the site and API key again.
Guild restarts its trace collector after each change, so there can be a short delay before new settings apply.

Give agents Datadog tools

The agent tools read Datadog monitors, metrics, logs, and events. The integration is guildai~datadog.

Authentication

  • Type: API key
  • Keys: an API key, sent in the DD-API-KEY header, and an application key, sent in the DD-APPLICATION-KEY header
  • Site: requests go to https://api.{site}, using the site you enter when you connect

Set up

1

Create the keys

In Datadog, create an API key under Organization Settings > API Keys and an application key under Organization Settings > Application Keys. If you scope the application key, give it read access to monitors, metrics, timeseries queries, logs, and events.
2

Connect Datadog

In Guild, go to Access & setup > Credentials, click Connect, and select Datadog.
3

Enter the keys and site

Paste the keys into API Key and Application Key, and enter your site in Datadog Site. Click Save.
See Credentials for workspace, member, and agent-scoped credentials.

Site values

Enter the site as a hostname, without https:// or app.: Guild accepts any hostname under datadoghq.com, datadoghq.eu, or ddog-gov.com, so a custom Datadog site works too.

Usage

Tools

Troubleshooting

In an organization, only admins see Observability. Ask an admin of the organization to set it up, or switch to the account that owns the workspaces you want to monitor.
Check these in order:
  1. The site matches the API key. A key from one Datadog site doesn’t work on another. Under Observability, confirm the site is the one in your Datadog sign-in URL.
  2. The API key is valid. In Datadog, open Organization Settings > API Keys and confirm the key exists and isn’t revoked. Guild doesn’t test the key when you save, so a wrong key fails silently.
  3. The sessions belong to this account. Guild forwards only sessions in workspaces the configured account owns. Sessions in another organization’s workspaces go to that organization’s provider.
  4. The settings have applied. After a save, Guild restarts its trace collector. Run a new session after a few minutes and look for its spans by guild.session.
Trace forwarding supports US1, US3, US5, EU1, AP1, and AP2. UK1, the US1-FED and US2-FED government sites, and custom sites aren’t available for forwarding. The agent tools accept all of them.
The site must be a bare hostname under datadoghq.com, datadoghq.eu, or ddog-gov.com. Remove any https://, app. prefix, or path. For example, enter datadoghq.eu, not https://app.datadoghq.eu.
Datadog rejected the application key. The key may be revoked, its creator may have lost access, or a scoped key may lack read access to the data the tool asked for. Check the key under Organization Settings > Application Keys in Datadog, then update the credential in Guild.
Check that the API key and application key are in the right fields and come from the same Datadog organization and site as the Datadog Site value.

Frequently asked questions

No. Trace forwarding is an account setting under Observability and needs only an API key. The agent tools are a separate credential. Set up either one, or both.
No. The Datadog tools are read-only. They read monitors, metrics, logs, and events, and don’t create, change, or mute anything.
No. Each account forwards to one provider. Different accounts, such as two organizations, can use different providers.
Not through this integration. It receives no webhook events from Datadog.

Watch your agents in Datadog this week

Book a demo

See how teams monitor and govern agents with Datadog.

Talk to sales

Get access to Guild, then connect Datadog to your account.
Also runs on Guild: Splunk · New Relic · Google Logging Read: Docs: Observability · Credentials · Credential policies · Tools in agents
Last modified on November 10, 2026