Logfire

Security & Safety 💻 Python ⚖️ MIT 🟢 Actively maintained
4.5k stars

Logfire is an observability platform from the team behind Pydantic, built as an opinionated wrapper around OpenTelemetry. It provides simple, powerful monitoring with Python-centric insights, SQL querying, and full support for traces, metrics, and logs. It is for developers who want easy-to-use observability with deep Python integration.

Logfire demo
🖼️ Screenshot from the project README

✨ Key features

  • Simple and powerful dashboard for the whole engineering team
  • Python-centric insights: object display, event-loop telemetry, profiling
  • Query data with standard SQL and existing BI tools
  • Opinionated wrapper around OpenTelemetry, supports all signals
  • Built-in analytics for Pydantic validation models
  • Integrates with popular packages like FastAPI

🎯 Use cases

  • Monitor Python application behavior with detailed traces and logs
  • Profile Python code and database queries for performance
  • Gain visibility into LLM apps and agents
  • Track Pydantic validation data and analytics
  • Export telemetry to any OTel-compatible backend

📦 Installation

🧰 Requirements: Python environment with pip; requires authentication via logfire auth (account needed).

pip install logfire

🚀 Usage

from datetime import date

import logfire

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)

⚠️ Good to know

The server application for recording and displaying data is closed source; only the SDK and documentation are open source.

❓ FAQ

Is Logfire open source?

The SDKs (Python, TypeScript, Rust) are open source, but the platform UI and backend are closed source. You can self-host with an enterprise license.

Can I use Logfire with non-Python languages?

Yes, because it is based on OpenTelemetry, it supports virtually any language, and there are SDKs for TypeScript and Rust.

How do I authenticate?

Run logfire auth in your terminal to authenticate.

Can I query my telemetry data?

Yes, you can query your data using standard SQL, which also allows integration with existing BI tools.

📊 Repository

Stars★ 4,456
Forks🍴 282
Open issues🐛 188
Last commit🕒 Sep 4, 2026
Created📅 Apr 2024
Language💻 Python
License⚖️ MIT

🤖 Overview, features, install steps and FAQ were generated from the project's README on Sep 4, 2026. Always check the original source before running commands.