Skip to content

Commit 4dc9c87

Browse files
authored
Release v4.9.0 (#1422)
1 parent 4e3404a commit 4dc9c87

File tree

6 files changed

+30
-6
lines changed

6 files changed

+30
-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+
## [v4.9.0] (2025-09-22)
4+
5+
* Fix Root Model Not Rendering As Expected by @dhruv-ahuja in [#1396](https://github.com/pydantic/logfire/pull/1396)
6+
* Use `=` instead of `:` in codex setup by @Kludex in [#1420](https://github.com/pydantic/logfire/pull/1420)
7+
* Add support for OpenCode on the `prompt` command by @Kludex in [#1421](https://github.com/pydantic/logfire/pull/1421)
8+
39
## [v4.8.0] (2025-09-18)
410

511
* Allow capturing headers and response body with `logfire.instrument_aiohttp_client()` by @adtyavrdhn in [#1405](https://github.com/pydantic/logfire/pull/1405) and [#1409](https://github.com/pydantic/logfire/pull/1409)
@@ -906,3 +912,4 @@ First release from new repo!
906912
[v4.6.0]: https://github.com/pydantic/logfire/compare/v4.5.0...v4.6.0
907913
[v4.7.0]: https://github.com/pydantic/logfire/compare/v4.6.0...v4.7.0
908914
[v4.8.0]: https://github.com/pydantic/logfire/compare/v4.7.0...v4.8.0
915+
[v4.9.0]: https://github.com/pydantic/logfire/compare/v4.8.0...v4.9.0

logfire-api/logfire_api/_internal/cli/prompt.pyi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import argparse
22
from logfire._internal.client import LogfireClient as LogfireClient
33
from logfire.exceptions import LogfireConfigError as LogfireConfigError
4+
from rich.console import Console
5+
from typing import Any
46

57
LOGFIRE_MCP_TOML: str
68

@@ -9,3 +11,8 @@ def parse_prompt(args: argparse.Namespace) -> None:
911
1012
The prompt assumes you are using Logfire MCP.
1113
"""
14+
def configure_claude(client: LogfireClient, organization: str, project: str, console: Console) -> None: ...
15+
def configure_codex(client: LogfireClient, organization: str, project: str, console: Console) -> None: ...
16+
def configure_opencode(client: LogfireClient, organization: str, project: str, console: Console) -> None: ...
17+
def logfire_mcp_json(token: str) -> dict[str, Any]: ...
18+
def opencode_mcp_json(token: str) -> dict[str, Any]: ...

logfire-api/logfire_api/_internal/main.pyi

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,17 @@ class Logfire:
593593
[`opentelemetry-instrumentation-google-genai`](https://pypi.org/project/opentelemetry-instrumentation-google-genai/)
594594
package, to which it passes `**kwargs`.
595595
"""
596-
def instrument_litellm(self, **kwargs: Any): ...
596+
def instrument_litellm(self, **kwargs: Any):
597+
"""Instrument the [LiteLLM](https://docs.litellm.ai/) Python SDK.
598+
599+
!!! warning
600+
This currently works best if all arguments of instrumented methods are passed as keyword arguments,
601+
e.g. `litellm.completion(model=model, messages=messages)`.
602+
603+
Uses the `LiteLLMInstrumentor().instrument()` method of the
604+
[`openinference-instrumentation-litellm`](https://pypi.org/project/openinference-instrumentation-litellm/)
605+
package, to which it passes `**kwargs`.
606+
"""
597607
def instrument_print(self) -> AbstractContextManager[None]:
598608
"""Instrument the built-in `print` function so that calls to it are logged.
599609

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.8.0"
7+
version = "4.9.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.8.0"
7+
version = "4.9.0"
88
description = "The best Python observability tool! 🪵🔥"
99
requires-python = ">=3.9"
1010
authors = [

uv.lock

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

0 commit comments

Comments
 (0)