diff --git a/src/kafka/Dockerfile.elastic b/src/kafka/Dockerfile.elastic index 61a4c8bbc3..98b0e8da83 100644 --- a/src/kafka/Dockerfile.elastic +++ b/src/kafka/Dockerfile.elastic @@ -11,7 +11,7 @@ USER appuser ADD --chown=appuser:appuser https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=co.elastic.otel&a=elastic-otel-javaagent&v=LATEST /tmp/opentelemetry-javaagent.jar -ENV OTEL_INFERRED_SPANS_ENABLED=true +ENV OTEL_INFERRED_SPANS_ENABLED=false ENV ELASTIC_OTEL_SPAN_STACK_TRACE_MIN_DURATION=2 ENV KAFKA_LISTENERS=PLAINTEXT://0.0.0.0:9092,CONTROLLER://0.0.0.0:9093 ENV KAFKA_CONTROLLER_QUORUM_VOTERS='1@0.0.0.0:9093' diff --git a/src/otelcollector/otelcol-elastic-config.yaml b/src/otelcollector/otelcol-elastic-config.yaml index 63ec2b97bd..1f65f74885 100644 --- a/src/otelcollector/otelcol-elastic-config.yaml +++ b/src/otelcollector/otelcol-elastic-config.yaml @@ -2,7 +2,9 @@ receivers: otlp: protocols: grpc: + endpoint: ${env:OTEL_COLLECTOR_HOST}:${env:OTEL_COLLECTOR_PORT_GRPC} http: + endpoint: ${env:OTEL_COLLECTOR_HOST}:${env:OTEL_COLLECTOR_PORT_HTTP} cors: allowed_origins: - "http://*"