Skip to content

Commit

Permalink
채팅 서비스에 OpenTelemetry 적용 (#17)
Browse files Browse the repository at this point in the history
## Related Issues
- #16
  • Loading branch information
Coldot committed Aug 8, 2024
2 parents 4927184 + ea851ab commit 9e899cc
Show file tree
Hide file tree
Showing 3 changed files 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"]
Binary file added chat/agent/opentelemetry-javaagent.jar
Binary file not shown.
Empty file modified chat/gradlew
100644 → 100755
Empty file.

0 comments on commit 9e899cc

Please sign in to comment.