GithubHelp home page GithubHelp logo

flask-otel's Introduction

flask-otel

Getting Started

  1. Install dependency pip install -r requirements.txt
  2. Run infra make infra
  3. Run server make server
  4. Do stress test make stress
  5. See Jaeger (http://localhost:16686/search) for traces
(env) ➜  flask-otel git:(main) ✗ make server
python app.py
 * Serving Flask app 'app'
 * Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on http://127.0.0.1:8080
Press CTRL+C to quit
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 719-749-963
127.0.0.1 - - [14/Oct/2023 23:18:31] "POST /books/purchase HTTP/1.1" 200 -
127.0.0.1 - - [14/Oct/2023 23:18:31] "POST /books/purchase HTTP/1.1" 200 -
127.0.0.1 - - [14/Oct/2023 23:18:31] "POST /books/purchase HTTP/1.1" 408 -

TODO:

  • Add tracing for high latency
  • Add tracing for error
  • Write blog
  • Convert blog to slides

Slide: Google Slides

flask-otel's People

Contributors

rafiramadhana 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.