Skip to content

Commit 320dddb

Browse files
authored
Release v4.2.0 (#1300)
1 parent 840fd77 commit 320dddb

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

CHANGELOG.md

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

3+
## [v4.2.0] (2025-08-06)
4+
5+
* Handle wrong JSON schema in console exporter by @alexmojaki in [#1294](https://github.com/pydantic/logfire/pull/1294)
6+
* Move creation of span down on cli by @Kludex in [#1298](https://github.com/pydantic/logfire/pull/1298)
7+
* Allow to set `instrument_httpx(capture_all=True)` via env var by @Kludex in [#1295](https://github.com/pydantic/logfire/pull/1295)
8+
39
## [v4.1.0] (2025-08-04)
410

511
* Add `min_level` argument to `logfire.configure` by @alexmojaki in [#1265](https://github.com/pydantic/logfire/pull/1265)
@@ -820,3 +826,4 @@ First release from new repo!
820826
[v4.0.0]: https://github.com/pydantic/logfire/compare/v3.25.0...v4.0.0
821827
[v4.0.1]: https://github.com/pydantic/logfire/compare/v4.0.0...v4.0.1
822828
[v4.1.0]: https://github.com/pydantic/logfire/compare/v4.0.1...v4.1.0
829+
[v4.2.0]: https://github.com/pydantic/logfire/compare/v4.1.0...v4.2.0

logfire-api/logfire_api/_internal/config_params.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ INSPECT_ARGUMENTS: Incomplete
5252
IGNORE_NO_CONFIG: Incomplete
5353
BASE_URL: Incomplete
5454
DISTRIBUTED_TRACING: Incomplete
55+
HTTPX_CAPTURE_ALL: Incomplete
5556
CONFIG_PARAMS: Incomplete
5657

5758
@dataclass

logfire-api/logfire_api/_internal/integrations/httpx.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ from collections.abc import Awaitable as Awaitable, Generator, Mapping
55
from email.headerregistry import ContentTypeHeader
66
from functools import cached_property, lru_cache
77
from logfire import Logfire as Logfire, LogfireSpan as LogfireSpan
8+
from logfire._internal.config import GLOBAL_CONFIG as GLOBAL_CONFIG
89
from logfire._internal.main import set_user_attributes_on_raw_span as set_user_attributes_on_raw_span
910
from logfire._internal.stack_info import warn_at_user_stacklevel as warn_at_user_stacklevel
1011
from logfire._internal.utils import handle_internal_errors as handle_internal_errors
@@ -14,7 +15,7 @@ from typing import Any, Callable, Literal, ParamSpec
1415

1516
P = ParamSpec('P')
1617

17-
def instrument_httpx(logfire_instance: Logfire, client: httpx.Client | httpx.AsyncClient | None, capture_all: bool, capture_headers: bool, capture_request_body: bool, capture_response_body: bool, request_hook: RequestHook | AsyncRequestHook | None, response_hook: ResponseHook | AsyncResponseHook | None, async_request_hook: AsyncRequestHook | None, async_response_hook: AsyncResponseHook | None, **kwargs: Any) -> None:
18+
def instrument_httpx(logfire_instance: Logfire, client: httpx.Client | httpx.AsyncClient | None, capture_all: bool | None, capture_headers: bool, capture_request_body: bool, capture_response_body: bool, request_hook: RequestHook | AsyncRequestHook | None, response_hook: ResponseHook | AsyncResponseHook | None, async_request_hook: AsyncRequestHook | None, async_response_hook: AsyncResponseHook | None, **kwargs: Any) -> None:
1819
"""Instrument the `httpx` module so that spans are automatically created for each request.
1920
2021
See the `Logfire.instrument_httpx` method for details.

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 = "4.1.0"
7+
version = "4.2.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 = "4.1.0"
7+
version = "4.2.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)