Back to directory

Infrastructure & Operations · Monitoring & Observability

Logfire

Python-first observability with OpenTelemetry and SQL

Logfire is Pydantic's observability platform for Python teams working with traces, logs, metrics, and application instrumentation. Its SDK and repository use the MIT License, while the platform server and interface are proprietary. Cloud access includes 10 million records per month at no charge, and Enterprise customers can self-host the platform.

Key facts

License
MIT
Main language
Python, TypeScript, Rust
Maintainer
Pydantic
First released
2024
Latest release
v5.2.0, October 13, 2026
GitHub stars
4,518, October 2026
Hosted option
Cloud from free for 10 million records monthly; paid plans from $49/month

What Logfire is

Logfire is Pydantic's observability platform for application traces, logs, metrics, and telemetry analysis. Pydantic maintains the project, which reached general availability on October 1, 2024. The GitHub repository had 4,518 stars in October 2026. Pydantic announced a $12.5 million Series A led by Sequoia, with Partech and Irregular Expression, alongside the general availability launch. The repository primarily contains the Python SDK and documentation, while the platform server and interface remain closed source. That split matters for teams assessing deployment control and licensing. Logfire targets Python developers, especially teams building services with Pydantic, FastAPI, and AI integrations. Its positioning combines OpenTelemetry ingestion with SQL-based inspection and a hosted operating model.

How it works

A typical Logfire workflow starts with installing the Python package and adding instrumentation to an application. The SDK captures spans, logs, metrics, exceptions, and framework activity through OpenTelemetry. Developers can instrument FastAPI, Anthropic, Google GenAI, and other supported integrations, then send records to Logfire Cloud or an Enterprise deployment. SQL-oriented telemetry inspection lets teams query application behavior instead of relying only on preset dashboards. Console output can be enabled during development, while the hosted interface supports investigation after deployment. The stable v5.2.0 release added OpenTelemetry 1.45 support, compression options, experimental zstd support, and fixes for duplicate FastAPI telemetry. This workflow suits teams that want instrumentation close to application code.

Architecture and recent releases

The primary SDK is written in Python and requires Python 3.10 or newer. Logfire also has SDKs for TypeScript and Rust, while its OpenTelemetry ingestion model accepts telemetry from other OpenTelemetry languages. Cloud runs as managed software. Enterprise self-hosting uses Kubernetes, PostgreSQL, and object storage, with an open-source Helm chart for deployment. The documented design uses S3-compatible storage, Parquet, SQL, and DataFusion components. Stable v5.2.0 arrived on October 13, 2026, while pre-release v6.0.0b8 arrived on October 9. The v6 beta split distribution into logfire-sdk and logfire-cli while preserving the existing import interface. These choices keep application instrumentation familiar for Python teams.

License and pricing

The SDK and repository use the MIT License, allowing commercial use, modification, redistribution, and inclusion in proprietary applications. That license does not cover the Logfire platform server or interface, which Pydantic keeps proprietary. Cloud pricing includes a free allowance of 10 million logs, spans, and metrics per month without a card. Team costs $49 per month, Growth costs $249 per month, and additional records cost $2 per million above the allowance. Paid plans include a price-cap option. Enterprise pricing is custom and includes self-hosting. The open-source Helm chart supports deployment, but it does not make the platform server open source or grant unrestricted rights to operate it.

Limitations and how it compares

The main limitation is the split between an open SDK and a proprietary server. Self-hosting requires an Enterprise agreement, which excludes teams seeking a fully open observability stack. Logfire's vendor FAQ positions it against Datadog, New Relic, and Dynatrace through OpenTelemetry ingestion, SQL access, per-span pricing, and Python and AI focus. OpenTelemetry Collector, Grafana, Jaeger, SigNoz, and OpenObserve offer more modular or open server options, with different operational responsibilities. Teams wanting a Python-centered service with managed access should consider Logfire. Teams requiring an open server, broader packaged dashboards, or unrestricted self-hosting should compare Grafana, SigNoz, or OpenObserve first. Accepts OpenTelemetry telemetry and supports instrumentation across Python applications, with additional TypeScript and Rust SDKs.

Main features

  • OpenTelemetry ingestion. Accepts OpenTelemetry telemetry and supports instrumentation across Python applications, with additional TypeScript and Rust SDKs.
  • Python instrumentation. Provides integrations for frameworks and services including FastAPI, Anthropic, and Google GenAI applications.
  • SQL telemetry queries. Lets teams inspect observability records with SQL-oriented analysis rather than relying solely on predefined dashboards.
  • Logs spans metrics. Collects logs, spans, and metrics within one platform, with a monthly record allowance tied to account pricing.
  • Cloud and Enterprise. Offers managed Cloud deployment and Enterprise self-hosting on Kubernetes with PostgreSQL and object storage.
  • Developer console output. Supports console attributes without verbose output, helping developers inspect instrumentation during local application development.
  • Compression support. The v5.2.0 release adds a compression option and experimental zstd support for telemetry transport.

Self-hosting Logfire

Logfire self-hosting is an Enterprise capability rather than a feature of the MIT-licensed SDK. Enterprise deployments run on Kubernetes and require PostgreSQL plus object storage, with S3-compatible storage supported. Pydantic publishes an open-source Helm chart for deployment, while the platform server remains proprietary. The SDK installs with pip install logfire and requires Python 3.10 or newer. The documented architecture uses Parquet, SQL, and DataFusion components. The project does not publish minimum CPU, memory, or storage figures or a backup procedure. Operators should plan database and object-storage backups around their Kubernetes installation and establish upgrade procedures with Pydantic.

Strengths

  • The Python SDK is MIT licensed and requires Python 3.10 or newer.
  • OpenTelemetry support connects Logfire with standard instrumentation and ingestion practices.
  • SQL analysis and per-span pricing fit teams investigating high-volume application telemetry.
  • The free tier includes 10 million logs, spans, and metrics each month.

Drawbacks

  • The platform server and interface are proprietary rather than open source.
  • Self-hosting requires an Enterprise license, Kubernetes, PostgreSQL, and object storage.
  • The most complete experience centers on Python, despite additional SDK support.

What teams replace with it

Teams usually evaluate Logfire when they want to move off Datadog, New Relic, Dynatrace.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Logfire

Frequently asked questions

Is Logfire free?

Logfire has a free Cloud allowance covering 10 million logs, spans, and metrics per month, with no card required. Team pricing is $49 per month, Growth is $249 per month, and extra records cost $2 per million above the allowance. Enterprise pricing is custom. The MIT SDK can also be used without paying for the hosted platform.

Can companies use Logfire commercially?

Yes. The Logfire SDK and repository use the MIT License, which permits commercial use, modification, and redistribution. The platform server and interface are proprietary, so the SDK license does not grant rights to run or modify the complete Logfire service. Enterprise self-hosting requires a separate commercial license from Pydantic.

How do you self-host Logfire?

Self-hosting is available through Enterprise and runs on Kubernetes. A deployment requires PostgreSQL and object storage, with S3-compatible storage supported. Pydantic publishes an open-source Helm chart, but the platform server remains proprietary. The Python SDK installs through pip and requires Python 3.10 or newer. The project does not publish minimum hardware requirements.

How does Logfire compare with Datadog?

Logfire focuses on OpenTelemetry, SQL inspection, per-span pricing, and Python and AI workloads. Datadog is a proprietary observability suite with a broader commercial product range. Logfire offers a free allowance and a Python-centered SDK, while Datadog may suit organizations seeking many packaged monitoring products. The better choice depends on deployment control, pricing, and existing instrumentation.

Is Logfire secure for private telemetry?

Logfire offers managed Cloud and Enterprise self-hosted deployment. Organizations with strict placement requirements can use the Enterprise Kubernetes option, although the server remains proprietary. The SDK is MIT licensed, and ingestion is OpenTelemetry based. Teams evaluating sensitive telemetry should review Pydantic's Enterprise terms, storage controls, access model, and operational requirements before adoption.

Similar projects to compare

Sources

Last updated 2026-10-22.