Skip to content

Commit 481c501

Browse files
authored
Release v4.3.0 (#1308)
1 parent 27dd79a commit 481c501

File tree

7 files changed

+31
-5
lines changed

7 files changed

+31
-5
lines changed

CHANGELOG.md

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

3+
## [v4.3.0] (2025-08-12)
4+
5+
* Closes logfire_api.LogfireSpan should support ReadableSpan attributes #989 by @RichardMarto in [#1288](https://github.com/pydantic/logfire/pull/1288)
6+
* Fix `test_instrument_google_genai` for specific versions by @alexmojaki in [#1303](https://github.com/pydantic/logfire/pull/1303)
7+
* Create read tokens via CLI by @Kludex in [#1306](https://github.com/pydantic/logfire/pull/1306)
8+
* Retrieve the prompt to fix issues via CLI by @Kludex in [#1307](https://github.com/pydantic/logfire/pull/1307)
9+
10+
## New Contributors
11+
* @RichardMarto made their first contribution in [#1288](https://github.com/pydantic/logfire/pull/1288)
12+
313
## [v4.2.0] (2025-08-06)
414

515
* Handle wrong JSON schema in console exporter by @alexmojaki in [#1294](https://github.com/pydantic/logfire/pull/1294)
@@ -827,3 +837,4 @@ First release from new repo!
827837
[v4.0.1]: https://github.com/pydantic/logfire/compare/v4.0.0...v4.0.1
828838
[v4.1.0]: https://github.com/pydantic/logfire/compare/v4.0.1...v4.1.0
829839
[v4.2.0]: https://github.com/pydantic/logfire/compare/v4.1.0...v4.2.0
840+
[v4.3.0]: https://github.com/pydantic/logfire/compare/v4.2.0...v4.3.0

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ def logfire_info() -> str:
1010
class SplitArgs(argparse.Action):
1111
def __call__(self, parser: argparse.ArgumentParser, namespace: argparse.Namespace, values: str | Sequence[Any] | None, option_string: str | None = None): ...
1212

13+
class OrgProjectAction(argparse.Action):
14+
def __call__(self, parser: argparse.ArgumentParser, namespace: argparse.Namespace, values: str | Sequence[Any] | None, option_string: str | None = None): ...
15+
1316
def main(args: list[str] | None = None) -> None:
1417
"""Run the CLI."""
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import argparse
2+
from logfire._internal.client import LogfireClient as LogfireClient
3+
4+
def parse_prompt(args: argparse.Namespace) -> None:
5+
"""Creates a prompt to be used with your favorite LLM.
6+
7+
The prompt assumes you are using Logfire MCP.
8+
"""

logfire-api/logfire_api/_internal/client.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ class LogfireClient:
5050
"""
5151
def create_write_token(self, organization: str, project_name: str) -> dict[str, Any]:
5252
"""Create a write token for the given project in the given organization."""
53+
def create_read_token(self, organization: str, project_name: str) -> dict[str, Any]:
54+
"""Create a read token for the given project in the given organization."""
55+
def get_prompt(self, organization: str, project_name: str, issue: str) -> dict[str, Any]:
56+
"""Get a prompt to be used with your favorite LLM."""

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.2.0"
7+
version = "4.3.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.2.0"
7+
version = "4.3.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)