Soo, this sort of works (things appear in the UI!). Turns out the docker run command we used from the example didn't expose enough ports to allow the terrible nodejs script I wrote to send data into the container. I also set the config in my script to always record spans rather than sampling a limited number.
-
make a folder somewhere, in it save
trace_gen.jsandnpm install jaeger-clientin there too. -
Run a docker container that has the "backend" / collector stuff in it:
docker run -d -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 -p5775:5775/udp -p6831:6831/udp -p6832:6832/udp \
-p5778:5778 -p16686:16686 -p14268:14268 -p9411:9411 jaegertracing/all-in-one:latest- start the trace generator using
node trace_gen.js - open
http://localhost:16686/in your browser. my-awesome-service should already appear in the service drop down. Click Find Traces at the bottom and stuff should appear!
notes stopping and starting the docker container will clear it and the UI of any data (you may also need to refresh the UI browser tab too.