opentracing-go example that generates a trace and child spans across http, grpc, kafka and postgresql.
MIT License
End-to-end go opentracing example using jaeger as tracer.
This example shows how to leverage open tracing to see a span that covers the following flow:
As you can see:
http-sever-initiator
that calls http-sever-receiver
over HTTP in turnhttp-sever-receiver
calls grpc-server
over GRPC after having registered a child spangrpc-server
publishes a message into kafka and returns a successful response upstream after having registered a child spankafka-consumer
consumes the message from the todos
topic and creates a new record in the todos
table.You can run the project using docker-compose up
(tbd)