logfire 4.14.1


pip install logfire

  Latest version

Released: Oct 22, 2025


Meta
Author: Pydantic Team, Samuel Colvin, Hasan Ramezani, Adrian Garcia Badaracco, David Montague, Marcelo Trylesinski, David Hewitt, Alex Hall
Requires Python: >=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Environment
  • Console
  • MacOS X

Framework
  • OpenTelemetry
  • OpenTelemetry :: Distros
  • OpenTelemetry :: Exporters
  • OpenTelemetry :: Instrumentations

Intended Audience
  • Developers
  • Information Technology
  • System Administrators

Operating System
  • POSIX :: Linux
  • Unix

Programming Language
  • Python
  • Python :: 3
  • Python :: 3 :: Only
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13

Topic
  • Internet
  • Software Development :: Libraries :: Python Modules

Pydantic Logfire โ€” Know more. Build faster.

CI codecov pypi license versions Join Slack

From the team behind Pydantic Validation, Pydantic Logfire is an observability platform built on the same belief as our open source library โ€” that the most powerful tools can be easy to use.

What sets Logfire apart:

  • Simple and Powerful: Logfire's dashboard is simple relative to the power it provides, ensuring your entire engineering team will actually use it.
  • Python-centric Insights: From rich display of Python objects, to event-loop telemetry, to profiling Python code and database queries, Logfire gives you unparalleled visibility into your Python application's behavior.
  • SQL: Query your data using standard SQL โ€” all the control and (for many) nothing new to learn. Using SQL also means you can query your data with existing BI tools and database querying libraries.
  • OpenTelemetry: Logfire is an opinionated wrapper around OpenTelemetry, allowing you to leverage existing tooling, infrastructure, and instrumentation for many common Python packages, and enabling support for virtually any language. We offer full support for all OpenTelemetry signals (traces, metrics and logs).
  • Pydantic Integration: Understand the data flowing through your Pydantic Validation models and get built-in analytics on validations.

See the documentation for more information.

Feel free to report issues and ask any questions about Logfire in this repository!

This repo contains the Python SDK for logfire and documentation; the server application for recording and displaying data is closed source.

Using Logfire

This is a very brief overview of how to use Logfire, the documentation has much more detail.

Install

pip install logfire

(learn more)

Authenticate

logfire auth

(learn more)

Manual tracing

Here's a simple manual tracing (aka logging) example:

import logfire
from datetime import date

logfire.configure()
logfire.info('Hello, {name}!', name='world')

with logfire.span('Asking the user their {question}', question='age'):
    user_input = input('How old are you [YYYY-mm-dd]? ')
    dob = date.fromisoformat(user_input)
    logfire.debug('{dob=} {age=!r}', dob=dob, age=date.today() - dob)

(learn more)

Integration

Or you can also avoid manual instrumentation and instead integrate with lots of popular packages, here's an example of integrating with FastAPI:

import logfire
from pydantic import BaseModel
from fastapi import FastAPI

app = FastAPI()

logfire.configure()
logfire.instrument_fastapi(app)
# next, instrument your database connector, http library etc. and add the logging handler

class User(BaseModel):
    name: str
    country_code: str

@app.post('/')
async def add_user(user: User):
    # we would store the user here
    return {'message': f'{user.name} added'}

(learn more)

Logfire gives you a view into how your code is running like this:

Logfire screenshot

Contributing

We'd love anyone interested to contribute to the Logfire SDK and documentation, see the contributing guide.

Reporting a Security Vulnerability

See our security policy.

Logfire Open-Source and Closed-Source Boundaries

The Logfire SDKs (we also have them for TypeScript and Rust) are open source, and you can use them to export data to any OTel-compatible backend.

The Logfire platform (the UI and backend) is closed source. You can self-host it by purchasing an enterprise license.

4.14.1 Oct 22, 2025
4.14.0 Oct 21, 2025
4.13.2 Oct 13, 2025
4.13.1 Oct 13, 2025
4.13.0 Oct 09, 2025
4.12.0 Oct 08, 2025
4.11.0 Oct 03, 2025
4.10.0 Sep 24, 2025
4.9.0 Sep 23, 2025
4.8.0 Sep 18, 2025
4.7.0 Sep 12, 2025
4.6.0 Sep 10, 2025
4.5.0 Sep 09, 2025
4.4.0 Sep 05, 2025
4.3.6 Aug 26, 2025
4.3.5 Aug 22, 2025
4.3.4 Aug 21, 2025
4.3.3 Aug 13, 2025
4.3.2 Aug 13, 2025
4.3.1 Aug 12, 2025
4.3.0 Aug 12, 2025
4.2.0 Aug 06, 2025
4.1.0 Aug 04, 2025
4.0.1 Jul 31, 2025
4.0.0 Jul 22, 2025
3.25.0 Jul 18, 2025
3.24.2 Jul 14, 2025
3.24.1 Jul 14, 2025
3.24.0 Jul 10, 2025
3.23.0 Jul 08, 2025
3.22.1 Jul 07, 2025
3.22.0 Jul 02, 2025
3.21.2 Jun 30, 2025
3.21.1 Jun 18, 2025
3.21.0 Jun 17, 2025
3.20.0 Jun 16, 2025
3.19.0 Jun 12, 2025
3.18.0 Jun 05, 2025
3.17.0 Jun 03, 2025
3.16.2 Jun 03, 2025
3.16.1 May 26, 2025
3.16.0 May 14, 2025
3.15.1 May 12, 2025
3.15.0 May 08, 2025
3.14.1 Apr 24, 2025
3.14.0 Apr 11, 2025
3.13.1 Apr 10, 2025
3.13.0 Apr 10, 2025
3.12.0 Mar 31, 2025
3.11.0 Mar 26, 2025
3.10.0 Mar 25, 2025
3.9.1 Mar 25, 2025
3.9.0 Mar 18, 2025
3.8.1 Mar 13, 2025
3.8.0 Mar 11, 2025
3.7.1 Mar 05, 2025
3.7.0 Mar 04, 2025
3.6.4 Feb 25, 2025
3.6.3 Feb 25, 2025
3.6.2 Feb 22, 2025
3.6.1 Feb 19, 2025
3.6.0 Feb 18, 2025
3.5.3 Feb 05, 2025
3.5.2 Feb 05, 2025
3.5.1 Feb 04, 2025
3.5.0 Feb 03, 2025
3.4.0 Jan 27, 2025
3.3.0 Jan 24, 2025
3.2.0 Jan 17, 2025
3.1.1 Jan 14, 2025
3.1.0 Jan 09, 2025
3.0.0 Jan 07, 2025
2.11.1 Dec 30, 2024
2.11.0 Dec 23, 2024
2.10.0 Dec 23, 2024
2.9.0 Dec 20, 2024
2.8.0 Dec 18, 2024
2.7.1 Dec 13, 2024
2.7.0 Dec 11, 2024
2.6.2 Dec 05, 2024
2.6.1 Dec 05, 2024
2.6.0 Dec 02, 2024
2.5.0 Nov 27, 2024
2.4.1 Nov 21, 2024
2.4.0 Nov 20, 2024
2.3.0 Nov 14, 2024
2.2.1 Nov 13, 2024
2.2.0 Nov 13, 2024
2.1.2 Nov 04, 2024
2.1.1 Oct 31, 2024
2.1.0 Oct 30, 2024
2.0.0 Oct 30, 2024
1.3.2 Oct 29, 2024
1.3.1 Oct 28, 2024
1.3.0 Oct 24, 2024
1.2.0 Oct 17, 2024
1.1.0 Oct 14, 2024
1.0.1 Oct 02, 2024
1.0.0 Sep 30, 2024
0.55.0 Sep 27, 2024
0.54.0 Sep 26, 2024
0.53.0 Sep 17, 2024
0.52.0 Sep 05, 2024
0.51.0 Aug 22, 2024
0.50.1 Aug 06, 2024
0.50.0 Aug 06, 2024
0.49.1 Aug 05, 2024
0.49.0 Aug 05, 2024
0.48.1 Jul 29, 2024
0.48.0 Jul 24, 2024
0.47.0 Jul 20, 2024
0.46.1 Jul 05, 2024
0.46.0 Jul 05, 2024
0.45.1 Jul 01, 2024
0.45.0 Jun 29, 2024
0.44.0 Jun 26, 2024
0.43.0 Jun 24, 2024
0.42.0 Jun 11, 2024
0.41.0 Jun 06, 2024
0.40.0 Jun 04, 2024
0.39.0 Jun 03, 2024
0.38.0 May 31, 2024
0.37.0 May 29, 2024
0.36.1 May 27, 2024
0.36.0 May 27, 2024
0.35.0 May 21, 2024
0.34.0 May 21, 2024
0.33.0 May 18, 2024
0.32.1 May 15, 2024
0.32.0 May 14, 2024
0.31.0 May 13, 2024
0.30.0 May 06, 2024
0.29.0 May 03, 2024
0.28.3 May 02, 2024
0.28.2 May 02, 2024
0.28.1 May 01, 2024
0.28.0 Apr 30, 2024
0.27.0 Apr 30, 2024
0.26.0 Apr 22, 2024
0.25.0 Apr 18, 2024
0.24.0 Apr 11, 2024
0.23.0 Mar 25, 2024
0.22.0 Mar 22, 2024
0.21.1 Mar 16, 2024
0.21.0 Mar 15, 2024
0.20.0 Mar 07, 2024
0.19.0 Mar 04, 2024
0.18.2 Mar 01, 2024
0.18.1 Feb 29, 2024
0.18.0 Feb 29, 2024
0.17.1 Feb 27, 2024
0.17.0 Feb 27, 2024
0.16.0 Feb 22, 2024
0.15.0 Feb 22, 2024
0.14.0 Feb 21, 2024
0.13.0 Feb 19, 2024
0.12.0 Feb 19, 2024
0.0.1 Apr 20, 2020

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
executing (>=2.0.1)
opentelemetry-exporter-otlp-proto-http (<1.39.0,>=1.35.0)
opentelemetry-instrumentation (>=0.41b0)
opentelemetry-sdk (<1.39.0,>=1.35.0)
protobuf (>=4.23.4)
rich (>=13.4.2)
tomli (>=2.0.1)
typing-extensions (>=4.1.0)