java-spring-jaeger icon indicating copy to clipboard operation
java-spring-jaeger copied to clipboard

Env variable name for udp sender host

Open CatalinMustata opened this issue 5 years ago • 2 comments

While it seems relatively clear from the documentation, I can't seem to get the client to send spans to the host when deployed in Kubernetes (works just fine locally)

I'm thinking I don't have the proper var name, but any suggestion would be highly appreciated:

When building the docker image for my app, I'm using the following entrypoint:

ENTRYPOINT ["java", \
            "-DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector", \
            "-DOPENTRACING_JAEGER_UDP_SENDER_HOST=$JAEGER_HOST", \
            "-jar", \
            "app.jar"]

When deploying to Kubernetes, I'm using the same strategy I used for the NodeJS apps I deployed, adding this to the container specs:

         env:
            - name: JAEGER_HOST
              valueFrom:
                fieldRef:
                  fieldPath: status.hostIP

Any pointers on debugging this would be very helpful.

CatalinMustata avatar Oct 30 '20 16:10 CatalinMustata

Should probably be:

            - name: OPENTRACING_JAEGER_UDP_SENDER_HOST
              valueFrom:
                fieldRef:
                  fieldPath: status.hostIP

ChrisEnglert avatar Jan 27 '21 16:01 ChrisEnglert

Thanks @ChrisEnglert. Wish I could test it out, but in the meantime I've switched to sidecar deployment of the agent so I'm not troubled by this.

CatalinMustata avatar Jan 28 '21 10:01 CatalinMustata