Platforms
Fly.io
Integrate your app with Subtrace on Fly.io
If you’re deploying your app on Fly.io, you can add Subtrace in just a couple of steps. Depending on the kind of Fly builder you’re using, the instructions are different.
We’ll use a Python Uvicorn server as an example, but you can do this with any language and framework.
Make the following changes to your app’s Dockerfile:
You might also need to install curl
and ca-certificates
in your container
since Fly.io runtimes may not include them by default.
Get a SUBTRACE_TOKEN
from the Tokens page on the dashboard
and set it as a Fly.io secret:
Deploy your app as you normally would:
That’s it! You can now visit your app and make some requests to see them automatically appear in the Subtrace dashboard.