From f346243b89600bcf11889eb18ded64cb2347f33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20St=C3=A4ber?= Date: Sun, 4 Aug 2024 12:59:46 +0200 Subject: [PATCH] Fix otlp receiver endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Stäber --- docker/otelcol-config.yaml | 2 ++ examples/java/run.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/otelcol-config.yaml b/docker/otelcol-config.yaml index 4501021..35aabc8 100644 --- a/docker/otelcol-config.yaml +++ b/docker/otelcol-config.yaml @@ -2,7 +2,9 @@ receivers: otlp: protocols: grpc: + endpoint: 0.0.0.0:4317 http: + endpoint: 0.0.0.0:4318 prometheus/collector: config: scrape_configs: diff --git a/examples/java/run.sh b/examples/java/run.sh index b398431..a3d5f33 100755 --- a/examples/java/run.sh +++ b/examples/java/run.sh @@ -5,7 +5,7 @@ set -euo pipefail if [[ ! -f ./target/rolldice.jar ]] ; then ./mvnw clean package fi -version=v2.1.0 +version=v2.6.0 jar=opentelemetry-javaagent-${version}.jar if [[ ! -f ./${jar} ]] ; then curl -sL https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/${version}/opentelemetry-javaagent.jar -o ${jar}