scoutapp / scout_apm_python

ScoutAPM Python Agent. Supports Django, Flask, and many other frameworks.
https://scoutapm.com
MIT License
69 stars 21 forks source link

Investigate support for FastAPI and FastAPI SQL Alchemy #600

Open jrothrock opened 3 years ago

jrothrock commented 3 years ago

From initial appearance, it looks like our Starlette integration works pretty well for FastAPI, but it doesn't appear that SQL timings are being collected when using the FastAPI SQL Alchemy library. Everything gets aggregated under 'View'

adamchainz commented 3 years ago

We don't collect any SQL timings in the async world. It's a bit harder and from what I recall the core agent and Python internals' data models aren't ready for parallel spans, something that's pretty much guaranteed with async apps.