tracing-demo (using jaeger)

1. run jaeger-all-in-one

docker run -d --name jaeger \
  -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
  -p 5775:5775/udp \
  -p 6831:6831/udp \
  -p 6832:6832/udp \
  -p 5778:5778 \
  -p 16686:16686 \
  -p 14268:14268 \
  -p 14250:14250 \
  -p 9411:9411 \
  jaegertracing/all-in-one:1.28

2. run formatter and publisher, then hello

go run cmd/formatter/formatter.go
go run cmd/publisher/publisher.go
go run cmd/client/client.go

3. open https://localhost:16686

4. jaeger-client-go is being deprecated, urge all users to migrate to OpenTelemetry.

go run cmd/otel/otel.go

GitHub

View Github