-
-
Notifications
You must be signed in to change notification settings - Fork 407
No step to set environment variables #43
Comments
You can try running Jaeger binary instead of Docker image, then it will be on localhost. But yes, it's a valid point for cases where Docker runs in a VM with a different IP. You don't need to provide sampler params since examples use a Const sampler, but you do need to provide an address of the agent or collector Would you like to put a pull request adding these instructions? It should go in the top level README. |
Hi. For now it simply does not work for me .... I tried to specify Jaeger host and port, but it did not help, and I still don't see my "hello-world" spans. Could you please take a look if I miss something? My yaeger UI is executed on http://192.168.99.100:16686. I added .withManagerHostPort("192.168.99.100:5778") - And after I execute first lesson, it shows no events for "hello-world" - What can I be missing? |
are you using Java? |
Yes |
you're using the wrong setting, "manager" is the config manager, not applicable with constant sampler. You need JAEGER_AGENT_HOST/JAEGER_AGENT_PORT, or JAEGER_ENDPOINT (if you want to bypass the agent and use HTTP to talk directly to collector). See https://github.com/jaegertracing/jaeger-client-java/tree/master/jaeger-core |
I tried to run Yaeger binary on localhost, and executed code from lesson01.solution.Hello. But still, even at localhost yaeger, I did not see my "hello-world" span ... |
did you reload the UI webpage after running the app? did the app print trace IDs in the logs |
Oh. Thanks God, localhost started working! Is it the right thing to do? |
I also tried But no result so far.. |
it sounds more like an issue with your Docker's networking setup. You call shell into the container and run tcpdump on the port to see if it's getting any traffic (although jaeger Docker images don't include any tools, you may need to use staged build to create a container with dev tools. |
Thank you! I will let you know, if I find what was the problem... |
Any updates on this for docker deployment? Facing a similar issue despite setting port forwarding in VM. |
Same here, if basic not work
System.setProperty("JAEGER_AGENT_HOST", "localhost");
System.setProperty("JAEGER_AGENT_PORT", "5778");
SamplerConfiguration samplerConfig = SamplerConfiguration.fromEnv()
.withType(ConstSampler.TYPE)
.withParam(1);
ReporterConfiguration reporterConfig = ReporterConfiguration.fromEnv()
.withLogSpans(true);
Configuration config = new Configuration("etabla2")
.withSampler(samplerConfig)
.withReporter(reporterConfig);
return config.getTracer();
|
Here is a crude solution that worked for me. Run the code in another Docker container and put both the containers in a single custom bridge network.
In this second container, install the required dependencies and run the examples:
I have verified all the examples and they work fine. I had to change the examples slightly to make it work with |
|
After lesson 1 I see no changes in yaeger UI. I think it is because we don't set environment variables that are taken by tracer - JAEGER_SAMPLER_TYPE, JAEGER_SAMPLER_PARAM, JAEGER_SAMPLER_MANAGER_HOST_PORT and they are null.
Also, I run docker for Windows and yaeger is Launched on 192.168.99.100 instead of localhost, please provide appropriate data if you edit.
The text was updated successfully, but these errors were encountered: