pip command:
SUBTRACE_TOKEN from the Subtrace dashboard
for free to set it as an environment variable.
fastapi command:
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Connect your FastAPI backend to Chrome DevTools using Subtrace
pip command:
pip install subtrace
# Add this line to install Subtrace on your FastAPI server
import subtrace
from fastapi import FastAPI
import requests
app = FastAPI()
counter = 0
@app.get("/counter")
def get_counter():
return {"counter": counter}
@app.post("/uuid")
def new_uuid():
global counter
counter += 1
return requests.get("https://httpbin.org/uuid").json()
SUBTRACE_TOKEN from the Subtrace dashboard
for free to set it as an environment variable.
# get a tracer token for free at https://subtrace.dev/dashboard
export SUBTRACE_TOKEN=
fastapi command:
fastapi run main.py