Skip to content

Commit

Permalink
Update instrumentation quickstart to new region tag name (#312)
Browse files Browse the repository at this point in the history
The `opentelemetry_instrumentation_agent_dockerfile` region tag is more general and can be referenced across different languages. I am using the same one for JS in GoogleCloudPlatform/opentelemetry-operations-js#687

I have "pinned" the docs build to existing version to prevent breaking links in the docs.
  • Loading branch information
aabmass committed Mar 21, 2024
1 parent 1b862d3 commit 50dfd01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/instrumentation-quickstart/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ ARG DEPENDENCY=/workspace/app/build/dependency
COPY --from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY --from=build ${DEPENDENCY}/META-INF /app/META-INF
COPY --from=build ${DEPENDENCY}/BOOT-INF/classes /app
# [START opentelemetry_instrumentation_javaagent_dockerfile]
# [START opentelemetry_instrumentation_agent_dockerfile]
RUN wget -O /opentelemetry-javaagent.jar https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/download/v1.31.0/opentelemetry-javaagent.jar
CMD sh -c "java -javaagent:/opentelemetry-javaagent.jar -cp app:app/lib/* com.example.demo.DemoApplication \
2>&1 | tee /var/log/app.log"
# [END opentelemetry_instrumentation_javaagent_dockerfile]
# [END opentelemetry_instrumentation_agent_dockerfile]

0 comments on commit 50dfd01

Please sign in to comment.