Skip to content

Commit 0eb769a

Browse files
authored
Release v3.23.0 (#1235)
1 parent d3e7ee1 commit 0eb769a

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release Notes
22

3+
## [v3.23.0] (2025-07-08)
4+
5+
* Add info method to logfire query clients by @hramezani in [#1204](https://github.com/pydantic/logfire/pull/1204)
6+
* Make query client not experimental by @alexmojaki in [#1234](https://github.com/pydantic/logfire/pull/1234)
7+
38
## [v3.22.1] (2025-07-07)
49

510
* Fix OpenAI streaming reasoning by @alexmojaki in [#1232](https://github.com/pydantic/logfire/pull/1232)
@@ -771,3 +776,4 @@ First release from new repo!
771776
[v3.21.2]: https://github.com/pydantic/logfire/compare/v3.21.1...v3.21.2
772777
[v3.22.0]: https://github.com/pydantic/logfire/compare/v3.21.2...v3.22.0
773778
[v3.22.1]: https://github.com/pydantic/logfire/compare/v3.22.0...v3.22.1
779+
[v3.23.0]: https://github.com/pydantic/logfire/compare/v3.22.1...v3.23.0

logfire-api/logfire_api/experimental/query_client.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from _typeshed import Incomplete
22
from datetime import datetime
3-
from uuid import UUID
43
from httpx import AsyncClient, Client, Response, Timeout
54
from httpx._client import BaseClient
65
from logfire._internal.config import get_base_url_from_token as get_base_url_from_token
@@ -15,8 +14,10 @@ class QueryExecutionError(RuntimeError):
1514
"""Raised when the query execution fails on the server."""
1615
class QueryRequestError(RuntimeError):
1716
"""Raised when the query request is invalid."""
17+
class InfoRequestError(RuntimeError):
18+
"""Raised when the request for read token info fails because of unavailable information."""
1819

19-
class ReadTokenInfo(TypedDict, total=True):
20+
class ReadTokenInfo(TypedDict, total=False):
2021
"""Information about the read token."""
2122
organization_name: str
2223
project_name: str
@@ -56,7 +57,7 @@ class LogfireQueryClient(_BaseLogfireQueryClient[Client]):
5657
def __enter__(self) -> Self: ...
5758
def __exit__(self, exc_type: type[BaseException] | None = None, exc_value: BaseException | None = None, traceback: TracebackType | None = None) -> None: ...
5859
def info(self) -> ReadTokenInfo:
59-
"""Get information about the read token."""
60+
"""Get information about the read token."""
6061
def query_json(self, sql: str, min_timestamp: datetime | None = None, max_timestamp: datetime | None = None, limit: int | None = None) -> QueryResults:
6162
"""Query Logfire data and return the results as a column-oriented dictionary."""
6263
def query_json_rows(self, sql: str, min_timestamp: datetime | None = None, max_timestamp: datetime | None = None, limit: int | None = None) -> RowQueryResults:
@@ -80,7 +81,7 @@ class AsyncLogfireQueryClient(_BaseLogfireQueryClient[AsyncClient]):
8081
async def __aenter__(self) -> Self: ...
8182
async def __aexit__(self, exc_type: type[BaseException] | None = None, exc_value: BaseException | None = None, traceback: TracebackType | None = None) -> None: ...
8283
async def info(self) -> ReadTokenInfo:
83-
"""Get information about the read token."""
84+
"""Get information about the read token."""
8485
async def query_json(self, sql: str, min_timestamp: datetime | None = None, max_timestamp: datetime | None = None, limit: int | None = None) -> QueryResults:
8586
"""Query Logfire data and return the results as a column-oriented dictionary."""
8687
async def query_json_rows(self, sql: str, min_timestamp: datetime | None = None, max_timestamp: datetime | None = None, limit: int | None = None) -> RowQueryResults:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .experimental.query_client import *

logfire-api/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "logfire-api"
7-
version = "3.22.1"
7+
version = "3.23.0"
88
description = "Shim for the Logfire SDK which does nothing unless Logfire is installed"
99
authors = [
1010
{ name = "Pydantic Team", email = "[email protected]" },

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "logfire"
7-
version = "3.22.1"
7+
version = "3.23.0"
88
description = "The best Python observability tool! 🪵🔥"
99
requires-python = ">=3.9"
1010
authors = [

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)