pip install --upgrade appsignal, change the version in requirements.txt if you pin one, and redeploy.
If you send data through a collector, keep it up to date too. AppSignal updates the hosted collector for you. If you run your own collector, follow the upgrade steps for the Linux package or the Docker image.