Air is built on FastAPI, so we could use [pyinstrument's instructions](https://pyinstrument.readthedocs.io/en/latest/guide.html#profile-a-web-request-in-fastapi) modified. However, because profilers reveal a LOT of internal data, in our example we actively use an environment variable. You will need both `air` and `pyinstrument` to get this working: ```sh # preferred uv add "air[standard]" pyinstrument # old school pip install "air[standard]" pyinstrument ```
And three years in, writing the Swift gateway for a derivatives trading system, and we put it live. And I watched as the first... message came up in the system. The first thing it did was make two billion dollars in collateral calls... and I just stared at the screen and thought, 'Well, that's the most interesting console message I'll ever see.' You know, really brought it home.