From 69892269b84b714803d885f256826d69f6715656 Mon Sep 17 00:00:00 2001 From: Andrew Cholakian Date: Mon, 9 Sep 2024 11:45:50 -0500 Subject: [PATCH] Fix Kafka and Collector config for macs (#74) * Fix Kafka and Collector config for macs Neither were working right, in the case of kafka this disables some problematic tracing options and in the case of the collector this fixes the config yaml * Revert docker-compose --- src/kafka/Dockerfile.elastic | 2 +- src/otelcollector/otelcol-elastic-config.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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://*"