Since Pydantic Logfire is OpenTelemetry compatible, it can be used with any OpenTelemetry
instrumentation package. You can find the list of all OpenTelemetry instrumentation packages
here.
Below you can see more details on how to use Logfire with some of the most popular Python packages.
If you are a maintainer of a package and would like to create an integration for Logfire, you can do it!
We've created a shim package called logfire-api, which can be used to integrate your package with Logfire.
The idea of logfire-api is that it doesn't have any dependencies. It's a very small package that matches the API of Logfire.
We created it so that you can create an integration for Logfire without having to install Logfire itself.
You can use logfire-api as a lightweight dependency of your own package.
If logfire is installed, then logfire-api will use it. If not, it will use a no-op implementation.
This way users of your package can decide whether or not they want to install logfire, and you don't need to
check whether or not it's installed.