From 55e6439ecb4699c019ce6156df573360a5658e94 Mon Sep 17 00:00:00 2001 From: Michael Ruhwedel Date: Mon, 20 Apr 2026 17:52:46 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20fix=20Datadog=20example=20=E2=80=94=20c?= =?UTF-8?q?orrect=20endpoint,=20add=20required=20header=20and=20temporalit?= =?UTF-8?q?y=20env=20var?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1689749..56d5ad8 100644 --- a/README.md +++ b/README.md @@ -150,10 +150,18 @@ export OPENCODE_DISABLE_METRICS="cache.count,session.duration,session.token.tota ```bash export OPENCODE_ENABLE_TELEMETRY=1 -export OPENCODE_OTLP_ENDPOINT=https://api.datadoghq.com +export OPENCODE_OTLP_ENDPOINT=https://otlp.datadoghq.com export OPENCODE_OTLP_PROTOCOL=http/protobuf +export OPENCODE_OTLP_HEADERS="dd-api-key=YOUR_DATADOG_API_KEY" + +# Required — Datadog's OTLP intake only accepts delta temporality +export OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=delta ``` +> **Note:** The endpoint is `otlp.datadoghq.com` (not `api.datadoghq.com`). +> Use `otlp.datadoghq.eu` for EU, `otlp.us3.datadoghq.com` for US3, etc. +> See [Datadog OTLP docs](https://docs.datadoghq.com/opentelemetry/interoperability/otlp_ingest_in_the_agent/) for all regions. + ### Honeycomb example ```bash