$ docker-compose up -d
$ go run server/main.go
Output:
2018/04/13 16:52:55 Initializing logging reporter
listening to port *:8080. press ctrl + c to cancel
$ go run client/main.go
Output:
2018/04/13 16:52:57 Initializing logging reporter
2018/04/13 16:52:57 Reporting span 9ad925450ab9dba:420f7c605e0b8f01:6568e0797064c901:1
2018/04/13 16:52:57 {"message": "hello!"}
2018/04/13 16:52:57 Reporting span 9ad925450ab9dba:3019c48aa8106cf4:6568e0797064c901:1
2018/04/13 16:52:57 Reporting span 9ad925450ab9dba:6568e0797064c901:9ad925450ab9dba:1
2018/04/13 16:52:57 Reporting span 9ad925450ab9dba:9ad925450ab9dba:0:1
Available at http://localhost:16686/. View registered services:
The spans:
$ docker-compose down
Traefik allows jaeger tracing too.
$ chmod +x traefik_darwin-amd64
$ sudo ./traefik --configFile=config/traefik.toml
Calling the traefik with go run client/main.go
:
Calling the traefik with go run plain-client/main.go
: