Skip to content

Commit

Permalink
etc: configure OpenTelemetry Java agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Coldot committed Aug 8, 2024
1 parent d0fffe3 commit ea851ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion chat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ RUN echo Asia/Seoul > /etc/timezone
WORKDIR /app

COPY build/libs/*.jar app.jar
COPY agent/opentelemetry-javaagent.jar opentelemetry-javaagent.jar
EXPOSE 8080

ENTRYPOINT ["java", "-jar", "app.jar"]
#ENTRYPOINT ["java", "-jar", "app.jar"]
ENTRYPOINT ["java", "-javaagent:opentelemetry-javaagent.jar", \
"-Dotel.exporter.otlp.endpoint=$OTEL_EXPORTER_OTLP_ENDPOINT", \
"-Dotel.service.name=chat", \
"-jar", "app.jar"]

0 comments on commit ea851ab

Please sign in to comment.