Add WSGI Middleware
Add tracer for sqlalchemy

To use it in your code you should add 2 sqlalchemy engine event listeners

import sqlalchemy
from sqlalchemy import event as sa_event
from osprofiler import sqlalchemy as sa_profiler

engine = sqlaclhemy.create_engine('your_db_host')

sa_profiler.add_tracing(sqlalchemy, engine, 'your_service')