Skip to content

Commit

Permalink
bump up otel java agent to 1.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredTan95 committed Feb 24, 2023
1 parent 0021a22 commit 69d32d3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
8 changes: 5 additions & 3 deletions src/adservice-v2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,19 @@ RUN ./mvnw --batch-mode clean package -DskipTests
FROM docker.m.daocloud.io/library/openjdk:11.0.15-jre

WORKDIR /app/
ARG version=1.23.0

COPY --from=builder /app/target/adservice-v2-1.0-SNAPSHOT.jar ./
COPY --from=builder /app/jmx_prometheus_javaagent-0.17.0.jar ./
COPY --from=builder /app/prometheus-jmx-config.yaml ./

RUN set -ex; \
curl -L -O https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.22.1/opentelemetry-javaagent.jar;
ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$version/opentelemetry-javaagent.jar /usr/src/app/opentelemetry-javaagent.jar

RUN chmod 644 /usr/src/app/opentelemetry-javaagent.jar

ENV OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 \
OTEL_RESOURCE_ATTRIBUTES=service.name=adservice-springcloud \
JAVA_TOOL_OPTIONS=-javaagent:opentelemetry-javaagent.jar \
JAVA_TOOL_OPTIONS=-javaagent:/usr/src/app/opentelemetry-javaagent.jar \
JAVA_OPTS='-Dspring.cloud.nacos.config.enabled=false -Dspring.randomError=false' \
AD_SERVICE_PORT=8080

Expand Down
2 changes: 1 addition & 1 deletion src/adservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN ./gradlew installDist -PprotoSourceDir=./proto

FROM eclipse-temurin:17-jre

ARG version=1.19.1
ARG version=1.23.0
WORKDIR /usr/src/app/

COPY --from=builder /usr/src/app/ ./
Expand Down
10 changes: 6 additions & 4 deletions src/dataservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ RUN ./mvnw --batch-mode clean package -DskipTests
FROM docker.m.daocloud.io/library/openjdk:11.0.15-jre

WORKDIR /app/
ARG version=1.23.0

COPY --from=builder /app/target/dataservice-0.0.1-SNAPSHOT.jar ./

RUN set -ex; \
curl -L -O https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.22.1/opentelemetry-javaagent.jar;
ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$version/opentelemetry-javaagent.jar /usr/src/app/opentelemetry-javaagent.jar

RUN chmod 644 /usr/src/app/opentelemetry-javaagent.jar

ENV OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 \
OTEL_RESOURCE_ATTRIBUTES=service.name=dataservice \
JAVA_TOOL_OPTIONS=-javaagent:opentelemetry-javaagent.jar \
JAVA_OPTS='-Dspring.cloud.nacos.config.enabled=false'
JAVA_TOOL_OPTIONS=-javaagent:/usr/src/app/opentelemetry-javaagent.jar \
JAVA_OPTS=' -Dotel.jmx.target.system=tomcat -Dspring.cloud.nacos.config.enabled=false'

EXPOSE 8082 8999 8888

Expand Down
2 changes: 1 addition & 1 deletion src/frauddetectionservice/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN gradle shadowJar

FROM gcr.io/distroless/java17-debian11

ARG version=1.22.1
ARG version=1.23.0
WORKDIR /usr/src/app/

COPY --from=builder /usr/src/app/build/libs/frauddetectionservice-1.0-all.jar ./
Expand Down
2 changes: 1 addition & 1 deletion src/kafka/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM confluentinc/cp-kafka:latest-ubi8

USER root
ARG version=1.21.0
ARG version=1.23.0
ADD https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v$version/opentelemetry-javaagent.jar /tmp/opentelemetry-javaagent.jar
RUN chmod go+r /tmp/opentelemetry-javaagent.jar

Expand Down

0 comments on commit 69d32d3

Please sign in to comment.