-
I have created a spring boot project jar and running the following command and it works well. Application starts successfully and sends telemetry data to jaeger. java -javaagent:opentelemetry-javaagent.jar -Dotel.resource.attributes=service.name=test-service -Dotel.traces.exporter=jaeger -Dotel.exporter.jaeger.endpoint=http://localhost:14250 -jar test-service.jar But it throws exception when trying to run as image. Variant 1: Variant 2: Exception: How can I overcome this issue. Please help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
You have to put every single command line parameter into quotes: |
Beta Was this translation helpful? Give feedback.
You have to put every single command line parameter into quotes:
"-javaagent:/src/main/resources/opentelemetry-javaagent.jar", "-Dotel.resource.attributes=service.name=test-service", "-Dotel.traces.exporter=jaeger", "-Dotel.exporter.jaeger.endpoint=http://localhost:14250"