Coder Social home page Coder Social logo

tracing-example's Introduction

tracing-example

A tracing example to show how it works Kubernetes and Opentracing

This example shows how the tracing acts in different endpoints and can be traced on each of the services using proxies.

multiple-trace

Componentes

tracing-example app

Is a simple Go app made to create long and with huge call to other services that will be generated randomly.

Disclaimer: Is an example app to test tracing (no tests, not the best structure, developed very fast...)

The app has different endpoints:

  • /operation/fast-end: Very fast rsponding endpoint.
  • /operation/slow-end: Slow responding endpoint.
  • /operation/single-call: Makes a call to another random service in a random endpoint before returning.
  • /operation/multiple-calls: Makes multiple (random number) of calls to another random services in a random endpoints before returning.

With these different endpoints and multiple apps of this app running and connected we can create very long traces to check how everything is propagated and how the requests enter on the services through the sidecar proxies (skipper).

Run on localhost

This will run 3 services (service-a, service-b, service-c) and infront of each service a sidecar proxy (trying to imitate Kubernetes on localhost for development) and the a jaeger stack in one single container (using memory as the store).

The example can be run on localhost using docker compose:

make dev

After this you can make a simple request to any of the different service endpoints:

And check the traces on Jaeger interface: http://localhost:16686

You can also have fun using vegeta :)

echo -e "GET http://localhost:9090/operation/single-call\nGET http://localhost:9091/operation/single-call\nGET http://localhost:9092/operation/single-call" | vegeta attack -duration=30s | tee results.bin | vegeta report

Run on Kubernetes

There is a deployment chart with all the example on chart directory(the deployed Jaeger is in development mode, not a production ready one).

tracing-example's People

Contributors

slok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.