https://signoz.io logo
#general
Title
# general
q

Quang Đoàn

09/27/2022, 4:27 PM
Copy code
FROM openjdk:11-slim as build
COPY target/helloworldservice-0.0.1-SNAPSHOT.jar helloworldservice-0.0.1-SNAPSHOT.jar
COPY opentelemetry-javaagent/opentelemetry-javaagent.jar opentelemetry-javaagent.jar
ENV OTEL_EXPORTER_OTLP_ENDPOINT="<http://localhost:4317>"
ENV OTEL_RESOURCE_ATTRIBUTES="service.name=HelloWorld"
ENTRYPOINT ["java","-javaagent:/opentelemetry-javaagent.jar","-jar","/helloworldservice-0.0.1-SNAPSHOT.jar"]
2 Views