diff --git a/collector/internal/telemetryapi/listener.go b/collector/internal/telemetryapi/listener.go index 3c65861a05..8499d4e402 100644 --- a/collector/internal/telemetryapi/listener.go +++ b/collector/internal/telemetryapi/listener.go @@ -52,7 +52,7 @@ func listenOnAddress() string { if ok && envAwsLocal == "true" { addr = ":" + defaultListenerPort } else { - addr = "sandbox:" + defaultListenerPort + addr = "sandbox.localdomain:" + defaultListenerPort } return addr diff --git a/collector/receiver/telemetryapireceiver/receiver.go b/collector/receiver/telemetryapireceiver/receiver.go index 6e24206ced..4df8b7764d 100644 --- a/collector/receiver/telemetryapireceiver/receiver.go +++ b/collector/receiver/telemetryapireceiver/receiver.go @@ -227,7 +227,7 @@ func listenOnAddress() string { if ok && envAwsLocal == "true" { addr = ":" + defaultListenerPort } else { - addr = "sandbox:" + defaultListenerPort + addr = "sandbox.localdomain:" + defaultListenerPort } return addr diff --git a/collector/receiver/telemetryapireceiver/receiver_test.go b/collector/receiver/telemetryapireceiver/receiver_test.go index 191a4e7d78..7f7b46572f 100644 --- a/collector/receiver/telemetryapireceiver/receiver_test.go +++ b/collector/receiver/telemetryapireceiver/receiver_test.go @@ -35,7 +35,7 @@ func TestListenOnAddress(t *testing.T) { desc: "listen on address without AWS_SAM_LOCAL env variable", testFunc: func(t *testing.T) { addr := listenOnAddress() - require.EqualValues(t, "sandbox:4325", addr) + require.EqualValues(t, "sandbox.localdomain:4325", addr) }, }, {