From 5b53df3be9e91a4aa4104c5482b10cda719a07df Mon Sep 17 00:00:00 2001 From: haoqixu Date: Mon, 28 Oct 2024 19:19:33 +0800 Subject: [PATCH] Fix command in v2 example The `component.UseLocalHostAsDefaultHost` gate has been removed from otel collector since v0.112.0. Set endpoints for otlpreceiver explicitly. Signed-off-by: haoqixu --- examples/hotrod/docker-compose-v2.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/hotrod/docker-compose-v2.yml b/examples/hotrod/docker-compose-v2.yml index 29b0491a030..9fb29357ad1 100644 --- a/examples/hotrod/docker-compose-v2.yml +++ b/examples/hotrod/docker-compose-v2.yml @@ -4,7 +4,9 @@ services: jaeger: image: ${REGISTRY:-}jaegertracing/jaeger:${JAEGER_VERSION:-latest} - command: ["--feature-gates=-component.UseLocalHostAsDefaultHost"] + command: + - --set=receivers.otlp.protocols.grpc.endpoint="0.0.0.0:4317" + - --set=receivers.otlp.protocols.http.endpoint="0.0.0.0:4318" ports: - "16686:16686" - "4317:4317"