FastAPI Tracing And Monitoring

See the Quick Start guide on how to install and configure Graphsignal.

Add the following code around inference. See API reference for full documentation.

@app.post("/predict")
async def predict(request: Request):
    with graphsignal.trace('predict'):
        # data processing and/or prediction code here

Examples

This FastAPI example illustrates how to integrate Graphsignal.