You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a service jar and deploying it suing jar command:
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
I'm running an independent jaeger-all-in-one.jar locally and are able to see trace data in jaeger UI at localhost:16686.
We have an aks cluster setup with linkerd service mesh and jaeger is installed as an extension of linkerd.
When I'm deploying the docker image, I can access service endpoints successfully but I don't see trace in jaeger Ui.
I tried with a different CMD variant: IP-Address: linkerd service mesh dashboard
CMD ["java","-javaagent:opentelemetry-javaagent.jar","-Dotel.resource.attributes=service.name=test-service","-Dotel.traces.exporter=linkerd-jaeger", "-Dotel.exporter.jaeger.endpoint=http://IP-Address:14250","-jar","/test-service.jar"]
Few forums say that for otel we don't need to configure any endpoint or exporter, trace would automatically be picked by jaeger.
I tried that option as well. but it did not work.
I tried to deploy the image locally with following CMD and it failed:
CMD ["java","-javaagent:opentelemetry-javaagent.jar","-Dotel.resource.attributes=service.name=test-service","-Dotel.traces.exporter=linkerd-jaeger", "-Dotel.exporter.jaeger.endpoint=http://localhost:14250","-jar","/test-service.jar"]
When I replaced localhost with my local IP-Address then it worked.
So I think it is not able to find the correct trace exporter and exporter endpoint when deploying jaeger as linkerd extension.
Can someone tell me what should be used for "-Dotel.traces.exporter" & "-Dotel.exporter.jaeger.endpoint".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have created a service jar and deploying it suing jar command:
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
I'm running an independent jaeger-all-in-one.jar locally and are able to see trace data in jaeger UI at localhost:16686.
We have an aks cluster setup with linkerd service mesh and jaeger is installed as an extension of linkerd.
When I'm deploying the docker image, I can access service endpoints successfully but I don't see trace in jaeger Ui.
My Dockerfile:
FROM openjdk:17-jdk-alpine
ARG APP_JAR=test-service.jar
ARG AGENT_JAR=opentelemetry-javaagent.jar
COPY ${APP_JAR} test-service.jar
COPY ${AGENT_JAR} opentelemetry-javaagent.jar
CMD ["java","-javaagent:opentelemetry-javaagent.jar","-Dotel.resource.attributes=service.name=test-service","-Dotel.traces.exporter=linkerd-jaeger", "-Dotel.exporter.jaeger.endpoint=http://localhost:14250","-jar","/test-service.jar"]
I tried with a different CMD variant:
IP-Address: linkerd service mesh dashboard
CMD ["java","-javaagent:opentelemetry-javaagent.jar","-Dotel.resource.attributes=service.name=test-service","-Dotel.traces.exporter=linkerd-jaeger", "-Dotel.exporter.jaeger.endpoint=http://IP-Address:14250","-jar","/test-service.jar"]
Few forums say that for otel we don't need to configure any endpoint or exporter, trace would automatically be picked by jaeger.
I tried that option as well. but it did not work.
I tried to deploy the image locally with following CMD and it failed:
CMD ["java","-javaagent:opentelemetry-javaagent.jar","-Dotel.resource.attributes=service.name=test-service","-Dotel.traces.exporter=linkerd-jaeger", "-Dotel.exporter.jaeger.endpoint=http://localhost:14250","-jar","/test-service.jar"]
When I replaced localhost with my local IP-Address then it worked.
So I think it is not able to find the correct trace exporter and exporter endpoint when deploying jaeger as linkerd extension.
Can someone tell me what should be used for "-Dotel.traces.exporter" & "-Dotel.exporter.jaeger.endpoint".
Beta Was this translation helpful? Give feedback.
All reactions