First, we need a working Jaeger instance that you can start as a Docker container from the official Docker image that contains all of the parts of the application in one. It's even called jaegertracing/all-in-one:
$ docker run --rm --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:1.8
Open all the necessary ports, and access the web UI of Jaeger at http://localhost:16686.
Now, we can write an application to interact with this instance.