From 20f8a87b925cc2ef5b9868087f03706cee0aa65b Mon Sep 17 00:00:00 2001 From: Coldot <41678750+Coldot@users.noreply.github.com> Date: Fri, 9 Aug 2024 00:18:19 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20OTEL=20=ED=99=98=EA=B2=BD=EB=B3=80?= =?UTF-8?q?=EC=88=98=20=EC=A3=BC=EC=9E=85=20=EB=B0=8F=20=EA=B8=B0=ED=83=80?= =?UTF-8?q?=20=EB=B3=80=EC=88=98=20=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chat/Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/chat/Dockerfile b/chat/Dockerfile index 718a45f..f3807ef 100644 --- a/chat/Dockerfile +++ b/chat/Dockerfile @@ -39,8 +39,12 @@ COPY build/libs/*.jar app.jar COPY agent/opentelemetry-javaagent.jar opentelemetry-javaagent.jar EXPOSE 8080 +ENV OTEL_EXPORTER_OTLP_ENDPOINT="" + #ENTRYPOINT ["java", "-jar", "app.jar"] -ENTRYPOINT ["java", "-javaagent:opentelemetry-javaagent.jar", \ - "-Dotel.exporter.otlp.endpoint=$OTEL_EXPORTER_OTLP_ENDPOINT", \ - "-Dotel.service.name=cloud6-chat", \ - "-jar", "app.jar"] +ENTRYPOINT java -javaagent:opentelemetry-javaagent.jar \ + -Dotel.propagators=jaeger \ + -Dotel.exporter.otlp.protocol=grpc \ + -Dotel.exporter.otlp.endpoint=${OTEL_EXPORTER_OTLP_ENDPOINT} \ + -Dotel.service.name=cloud6-chat \ + -jar app.jar