Giter Site home page Giter Site logo

dtracing-foobar-demo's Introduction

foobar

This is a distributed tracing demo! Foobar consists of two extremely complex services: foo and bar.

On this demo:

  • You can generate load with k6.
  • Services foo and bar:
    • Are written in Python.
    • Are instrumented with OpenTelemetry.
    • Export the spans to an OpenTelemetry Collector using the OTLP exporter.
  • The OpenTelemetry Collector exports the tracing data to Grafana Tempo.
  • Grafana Tempo can be queried from Grafana.

Here's a small diagram:

diagram

QuickStart

Requirements: Docker and Docker Compose.

  1. Build and run services with docker-compose:
docker-compose up --build -d 
  1. See running services with:
docker-compose ps
  1. Generate some load with k6:
docker run -i --network=foobar-demo_default loadimpact/k6 run --quiet - <example.js
  1. See logs with:
docker-compose logs foo | grep trace_id
  1. Pick a trace_id from the logs.

  2. Go to Grafana (http://localhost:3000) -> Explore -> Tempo and paste the trace_id.

diagram

  1. Stop the whole setup with:
docker-compose stop

dtracing-foobar-demo's People

Contributors

dgzlopes avatar monodot avatar

Watchers

 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.