Skip to content

Commit

Permalink
fix: OTEL 환경변수 주입 및 기타 변수 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Coldot committed Aug 8, 2024
1 parent 292cb5d commit 20f8a87
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions chat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 20f8a87

Please sign in to comment.