Skip to content

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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
make run CMD='go run main.go httpA'
curl -v localhost:3000

# grpc example
make run CMD='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
make run CMD='go run main.go natsC'

open localhost:16686 to see the trace.

image

image

image

Maintenance checklist

  • Go runtime updated to 1.26.5.
  • OpenTelemetry, gRPC, NATS, Fiber, and gotro dependencies refreshed.
  • HTTP tracing routes updated for the current otelhttp handler API.
  • make test compiles all Go packages.
  • make verify-dependency-security and make vulncheck check dependency security.

Future improvements

  • log all request and response payload

Special Thanks

  • thetooth - fixing NATS traceID/spanID problem

About

jaeger integration example with common protocols

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages