Skip to content

Commit 56f661e

Browse files
authored
Release v2.10.0 (#721)
1 parent 9933ce3 commit 56f661e

File tree

5 files changed

+21
-6
lines changed

5 files changed

+21
-6
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+
## [v2.10.0] (2024-12-23)
4+
5+
* Add `capture_request_form_data` param to `instrument_httpx` by @alexmojaki in [#711](https://github.com/pydantic/logfire/pull/711)
6+
* Replace `capture_(request|response)_headers` with just `capture_headers` in `instrument_httpx` by @Kludex in [#719](https://github.com/pydantic/logfire/pull/719)
7+
* Support SQLAlchemy `AsyncEngine` by @Kludex in [#717](https://github.com/pydantic/logfire/pull/717)
8+
39
## [v2.9.0] (2024-12-20)
410

511
* Capture httpx response JSON bodies by @alexmojaki in [#700](https://github.com/pydantic/logfire/pull/700)
@@ -486,3 +492,4 @@ First release from new repo!
486492
[v2.7.1]: https://github.com/pydantic/logfire/compare/v2.7.0...v2.7.1
487493
[v2.8.0]: https://github.com/pydantic/logfire/compare/v2.7.1...v2.8.0
488494
[v2.9.0]: https://github.com/pydantic/logfire/compare/v2.8.0...v2.9.0
495+
[v2.10.0]: https://github.com/pydantic/logfire/compare/v2.9.0...v2.10.0

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import httpx
22
from _typeshed import Incomplete
3+
from email.headerregistry import ContentTypeHeader
34
from logfire import Logfire as Logfire
45
from logfire._internal.main import set_user_attributes_on_raw_span as set_user_attributes_on_raw_span
6+
from logfire._internal.stack_info import warn_at_user_stacklevel as warn_at_user_stacklevel
57
from logfire._internal.utils import handle_internal_errors as handle_internal_errors
68
from logfire.integrations.httpx import AsyncRequestHook as AsyncRequestHook, AsyncResponseHook as AsyncResponseHook, RequestHook as RequestHook, RequestInfo as RequestInfo, ResponseHook as ResponseHook, ResponseInfo as ResponseInfo
79
from logfire.propagate import attach_context as attach_context, get_context as get_context
@@ -46,10 +48,16 @@ def run_hook(hook: Callable[P, Any] | None, *args: P.args, **kwargs: P.kwargs) -
4648
def capture_response_headers(span: Span, response: ResponseInfo) -> None: ...
4749
def capture_request_headers(span: Span, request: RequestInfo) -> None: ...
4850
def capture_headers(span: Span, headers: httpx.Headers, request_or_response: Literal['request', 'response']) -> None: ...
49-
def get_charset(content_type: str) -> str: ...
50-
def decode_body(body: bytes, content_type: str): ...
51+
def decode_body(body: bytes, charset: str): ...
5152
def capture_request_body(span: Span, request: RequestInfo) -> None: ...
5253

5354
CODES_FOR_METHODS_WITH_DATA_PARAM: Incomplete
5455

5556
def capture_request_form_data(span: Span, request: RequestInfo) -> None: ...
57+
def content_type_header_from_string(content_type: str) -> ContentTypeHeader: ...
58+
def content_type_subtypes(subtype: str) -> set[str]: ...
59+
def is_json_type(content_type: str) -> bool: ...
60+
61+
TEXT_SUBTYPES: Incomplete
62+
63+
def is_text_type(content_type: str) -> bool: ...

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 = "2.9.0"
7+
version = "2.10.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 = "2.9.0"
7+
version = "2.10.0"
88
description = "The best Python observability tool! 🪵🔥"
99
requires-python = ">=3.8"
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)