Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 1.06 KB

README.md

File metadata and controls

38 lines (23 loc) · 1.06 KB

jeager1

This is example how to use jaeger (typo '__') to trace between services. Since most of the examples on the internet already outdated (deprecated jaeger client or deprecated opentracing library).

docker-compose up -d

# http example
go run main.go httpA
curl -v localhost:3000

# grpc example
go run main.go grpcB
grpcurl -plaintext 127.0.0.1:3001 list
grpcurl -plaintext -d '{"name":"BBB"}' 127.0.0.1:3001 GrpcB.GetSomething 

# nats example, will publish a message when server start
go run main.go natsC 

open localhost:16686 to see the trace.

image

image

image

TODO

  • log all request and response payload

Special Thanks

  • thetooth - fixing NATS traceID/spanID problem