Guides
Python FastAPI + Subtrace
Connect your FastAPI backend to Chrome DevTools using Subtrace
You can connect your FastAPI backend to Chrome DevTools using Subtrace with just one line of code. With Subtrace, you can inspect the status, headers, payload, and latency of all API requests so you can debug way faster.
To begin, install Subtrace using the pip
command:
For this guide, we’ll use the following Python FastAPI app as an example:
Get a SUBTRACE_TOKEN
from the Subtrace dashboard
for free to set it as an environment variable.
Start your server using the fastapi
command:
And send some requests and see them in Chrome DevTools!
You can find the complete source code used in this demo here.