localhost:4318, and the agent forwards them to the Datadog backend using your configured API key.
Prerequisites
This guide assumes you have a Datadog Agent already installed and configured with OTLP ingestion enabled. If you need to install the agent, refer to the Datadog Agent Installation Guide. To enable OTLP in the Datadog Agent, add the following to yourdatadog.yaml:
Get started
Configure the SDK to send to the Datadog Agent
Point
otlp_endpoint at the Datadog Agent running on localhost. No API key or authentication header is needed in the application — the agent handles authentication to the Datadog backend.- Python
- TypeScript
Using function arguments:Using environment variables:
The Datadog Agent handles authentication and forwarding to Datadog. You do not need to set
otlp_headers or a Datadog API key in your application configuration.Full example
my-ai-service.
Send to OpenLIT
Send to a self-hosted OpenLIT platform instance
Send to Grafana Cloud
Configure the Grafana OTLP gateway endpoint and Basic Auth headers
Integrations
60+ LLM providers, AI frameworks, and vector databases
