Coder Social home page Coder Social logo

andream16 / go-opentracing-example Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 254 KB

opentracing-go example that generates a trace and child spans across http, grpc, kafka and postgresql.

License: MIT License

Dockerfile 0.82% Go 95.30% Makefile 3.89%
go opentracing jaeger jaegertracing kafka grpc http span traces tracing

go-opentracing-example's Introduction

go-opentracing-example

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:

1

As you can see:

  • a span is started by performing an HTTP request to the http-sever-initiator that calls http-sever-receiver over HTTP in turn
  • http-sever-receiver calls grpc-server over GRPC after having registered a child span
  • grpc-server publishes a message into kafka and returns a successful response upstream after having registered a child span
  • kafka-consumer consumes the message from the todos topic and creates a new record in the todos table. It creates two spans: one for the time spent in the whole consumer logic and one for the time spent during the database query.

How to run

You can run the project using docker-compose up (tbd)

TODOS

  • Write solid documentation.

go-opentracing-example's People

Contributors

andream16 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.