Skip to content

vissree/flask-sqlalchemy-x-ray-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-sqlalchemy-x-ray-sample

A sample application to get started with Flask and AWS X-Ray integration

Setup

  1. Install x-ray daemon locally
  2. Setup a Python virualenv and install requirements
python -m venv venv
pip install -r requirements.txt
  1. Create .env file. A sample available at .env.sample
  2. Start the application
python wsgi.py
  1. Generate some traffic
for id in {100..110}; do
    curl -X POST "http://localhost:8080/${id}"
    curl "http://localhost:8080/${id}"
    sleep .25
done
  1. Visit AWS X-Ray Console and check the generated traces

References

AWS X-Ray
X-Ray SDK for Python middleware
Patching libraries to instrument downstream calls
Generating custom subsegements
AWS X-Ray Daemon

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages