Skip to content

Commit

Permalink
Release v3.6.2 (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmojaki authored Feb 22, 2025
1 parent 8e39500 commit cd2a66e
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes

## [v3.6.2] (2025-02-22)

* Fix typing errors involving `handle_internal_errors` by @alexmojaki in [#885](https://github.com/pydantic/logfire/pull/885)
* Avoid double shutdown of logger provider by @alexmojaki in [#878](https://github.com/pydantic/logfire/pull/878)

## [v3.6.1] (2025-02-19)

* avoid `BatchLogRecordProcessor` use on pyodide/emscripten by @samuelcolvin in [#873](https://github.com/pydantic/logfire/pull/873)
Expand Down Expand Up @@ -586,3 +591,4 @@ First release from new repo!
[v3.5.3]: https://github.com/pydantic/logfire/compare/v3.5.2...v3.5.3
[v3.6.0]: https://github.com/pydantic/logfire/compare/v3.5.3...v3.6.0
[v3.6.1]: https://github.com/pydantic/logfire/compare/v3.6.0...v3.6.1
[v3.6.2]: https://github.com/pydantic/logfire/compare/v3.6.1...v3.6.2
12 changes: 10 additions & 2 deletions logfire-api/logfire_api/_internal/utils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ from packaging.version import Version
from pathlib import Path
from requests import RequestException, Response
from types import TracebackType
from typing import Any, Mapping, Sequence, TypeVar, TypedDict
from typing import Any, Callable, Mapping, ParamSpec, Sequence, TypeVar, TypedDict

SysExcInfo = tuple[type[BaseException], BaseException, TracebackType | None] | tuple[None, None, None]
P = ParamSpec('P')
T = TypeVar('T')
JsonValue: Incomplete
JsonDict = dict[str, JsonValue]
Expand Down Expand Up @@ -88,7 +89,14 @@ def is_instrumentation_suppressed() -> bool:
def suppress_instrumentation() -> Generator[None]:
"""Context manager to suppress all logs/spans generated by logfire or OpenTelemetry."""
def log_internal_error() -> None: ...
def handle_internal_errors() -> Generator[None]: ...

class HandleInternalErrors:
def __enter__(self) -> None: ...
def __exit__(self, exc_type: type[BaseException], exc_val: BaseException, exc_tb: TracebackType) -> bool | None: ...
def __call__(self, func: Callable[P, T]) -> Callable[P, T]: ...

handle_internal_errors: Incomplete

def maybe_capture_server_headers(capture: bool): ...
def is_asgi_send_receive_span_name(name: str) -> bool: ...

Expand Down
2 changes: 1 addition & 1 deletion logfire-api/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "logfire-api"
version = "3.6.1"
version = "3.6.2"
description = "Shim for the Logfire SDK which does nothing unless Logfire is installed"
authors = [
{ name = "Pydantic Team", email = "[email protected]" },
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "logfire"
version = "3.6.1"
version = "3.6.2"
description = "The best Python observability tool! 🪵🔥"
requires-python = ">=3.8"
authors = [
Expand Down
4 changes: 2 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd2a66e

Please sign in to comment.