Open GreySpike opened 4 years ago
I used special agent 1.5.8 and have the same issue.
@anhtuanluu36 I think problem with not opened ports. To start Jaeger please try something like:
docker run -d --name jaeger -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 -p 9411:9411 jaegertracing/all-in-one:latest
Great, it works. Thank you!
Could you please explain why it only works when I start with All in One?
1) When I start with the command. The port 5775 does not work:
docker run -d -p 5775:5775/udp -p 16686:16686 jaegertracing/all-in-one:latest
2) After that I start with the command. The port 5775 works fine:
docker run -d --name jaeger -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p 5775:5775/udp -p 6831:6831/udp -p 6832:6832/udp -p 5778:5778 -p 16686:16686 -p 14268:14268 -p 9411:9411 jaegertracing/all-in-one:latest
no idea, that's the question to jaeger developers
I'm not sure that 5775
port is used, maybe 6831
is used instead.
I'm not seeing any traces in Jaeger from Microdounts although there are jaeger-query traces from trying to find them, so Jaeger itself appears to be working fine.
I have tried docker run --name jaeger -d -p 5775:5775/udp -p 16686:16686 jaegertracing/all-in-one:latest then docker run --name jaeger -d -p 6831-6832:6831-6832/udp -p 16686:16686 jaegertracing/all-in-one:latest
as the Jaeger docs state that using post 5775 is deprecated.
I also changed from the probabilist to constant sampler in case I simply wasn't selling sufficient donuts to trigger sampling.
run-with-jaeger: build $(SPECIALAGENT_JAR) java -cp target/api-* -javaagent:$(SPECIALAGENT_JAR) \ -Dsa.tracer=jaeger \ -Dsa.log.level=$(LOGLEVEL) \ -DJAEGER_SERVICE_NAME=$(SERVICE_NAME) \ -DJAEGER_SAMPLER_TYPE=const \ -DJAEGER_SAMPLER_PARAM=1 \ com.otsample.api.App
I see this on the console, so I think this means that the tracer is started. | | | += tracingFilter - STARTED | | | +- [/*]/[]==31=>tracingFilter | | | +> io.opentracing.Tracer=GlobalTracer{JaegerTracer(version=Java-0.35.1, serviceName=Microdonuts, reporter=RemoteReporter(sender=UdpSender(), closeEnqueueTimeout=1000), sampler=ConstSampler(decision=true, tags={sampler.type=const, sampler.param=true}), tags={hostname=PGUK-L536, jaeger.version=Java-0.35.1, ip=192.168.1.171}, zipkinSharedRpcSpan=false, expandExceptionLogs=false, useTraceId128Bit=false)} | | +> initparams c.o.a.ApiContextHandler@-59622d93{/,null,AVAILABLE} size=0
Environment: Windows 10 Docker Desktop OpenJDK Runtime Environment AdoptOpenJDK (build 13+33) Git bash (for running make)
Attached: console.log
Makefile.txt
I'm now out of ideas on how to get this working, or even where to look.
Any ideas gratefully received.