Skip to content

Commit cd2a66e

Browse files
authored
Release v3.6.2 (#887)
1 parent 8e39500 commit cd2a66e

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
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.6.2] (2025-02-22)
4+
5+
* Fix typing errors involving `handle_internal_errors` by @alexmojaki in [#885](https://github.com/pydantic/logfire/pull/885)
6+
* Avoid double shutdown of logger provider by @alexmojaki in [#878](https://github.com/pydantic/logfire/pull/878)
7+
38
## [v3.6.1] (2025-02-19)
49

510
* avoid `BatchLogRecordProcessor` use on pyodide/emscripten by @samuelcolvin in [#873](https://github.com/pydantic/logfire/pull/873)
@@ -586,3 +591,4 @@ First release from new repo!
586591
[v3.5.3]: https://github.com/pydantic/logfire/compare/v3.5.2...v3.5.3
587592
[v3.6.0]: https://github.com/pydantic/logfire/compare/v3.5.3...v3.6.0
588593
[v3.6.1]: https://github.com/pydantic/logfire/compare/v3.6.0...v3.6.1
594+
[v3.6.2]: https://github.com/pydantic/logfire/compare/v3.6.1...v3.6.2

logfire-api/logfire_api/_internal/utils.pyi

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ from packaging.version import Version
1414
from pathlib import Path
1515
from requests import RequestException, Response
1616
from types import TracebackType
17-
from typing import Any, Mapping, Sequence, TypeVar, TypedDict
17+
from typing import Any, Callable, Mapping, ParamSpec, Sequence, TypeVar, TypedDict
1818

1919
SysExcInfo = tuple[type[BaseException], BaseException, TracebackType | None] | tuple[None, None, None]
20+
P = ParamSpec('P')
2021
T = TypeVar('T')
2122
JsonValue: Incomplete
2223
JsonDict = dict[str, JsonValue]
@@ -88,7 +89,14 @@ def is_instrumentation_suppressed() -> bool:
8889
def suppress_instrumentation() -> Generator[None]:
8990
"""Context manager to suppress all logs/spans generated by logfire or OpenTelemetry."""
9091
def log_internal_error() -> None: ...
91-
def handle_internal_errors() -> Generator[None]: ...
92+
93+
class HandleInternalErrors:
94+
def __enter__(self) -> None: ...
95+
def __exit__(self, exc_type: type[BaseException], exc_val: BaseException, exc_tb: TracebackType) -> bool | None: ...
96+
def __call__(self, func: Callable[P, T]) -> Callable[P, T]: ...
97+
98+
handle_internal_errors: Incomplete
99+
92100
def maybe_capture_server_headers(capture: bool): ...
93101
def is_asgi_send_receive_span_name(name: str) -> bool: ...
94102

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.6.1"
7+
version = "3.6.2"
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.6.1"
7+
version = "3.6.2"
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)