Skip to content

jaeger integration example with common protocols

Notifications You must be signed in to change notification settings

kokizzu/jeager1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published