pydantic/logfire

AI observability platform for production LLM and agent systems.

What it solves

Logfire provides a way for developers to gain deep visibility into their Python applications. It solves the problem of fragmented or opaque observability by offering a unified platform for tracing, metrics, and logs, specifically optimized for the Python ecosystem and Pydantic models.

How it works

Logfire acts as an opinionated wrapper around OpenTelemetry (OTel), allowing it to support all OTel signals and integrate with a wide variety of popular Python packages. It provides a Python SDK for manual tracing and automatic instrumentation of frameworks like FastAPI. Data is then exported to a dashboard where it can be queried using standard SQL, allowing for easy analysis and integration with BI tools.

Who it’s for

It is designed for engineering teams building Python applications, particularly those using Pydantic for data validation, and those who want a powerful but simple observability tool that integrates with existing OpenTelemetry infrastructure.

Highlights

  • Python-centric insights: Provides rich displays of Python objects, event-loop telemetry, and profiling for code and database queries.
  • Pydantic Integration: Offers built-in analytics on validations and visibility into data flowing through Pydantic models.
  • SQL-powered queries: Allows users to query observability data using standard SQL.
  • OpenTelemetry based: Leverages existing OTel tooling and instrumentation while remaining compatible with other OTel-compatible backends.

Related

  • Project
  • Project
  • Project
  • Project
  • Project