Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions content/en/opentelemetry/setup/otlp_ingest_in_the_agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,23 @@ There are many other environment variables and settings supported in the Datadog

## Sending OpenTelemetry traces, metrics, and logs to Datadog Agent

After enabling OTLP ingestion on the Datadog Agent, configure your OpenTelemetry-instrumented application to export telemetry data to the Agent's OTLP endpoint. Set the `OTEL_EXPORTER_OTLP_ENDPOINT` environment variable in your **application** environment to direct data to the Agent. Without this configuration, your application does not send telemetry data to the Agent, even if the Agent's OTLP receiver is enabled.

{{< tabs >}}
{{% tab "Host" %}}
Set the `OTEL_EXPORTER_OTLP_ENDPOINT` environment variable in your application's environment:

For gRPC:
```shell
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317"
```

For HTTP:
```shell
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
```
{{% /tab %}}

{{% tab "Docker" %}}
1. For the application container, set `OTEL_EXPORTER_OTLP_ENDPOINT` environment variable to point to the Datadog Agent container. For example:

Expand Down
Loading