Skip to content

Commit f93aeb6

Browse files
authored
Release v4.10.0 (#1427)
1 parent c9105f9 commit f93aeb6

File tree

7 files changed

+22
-9
lines changed

7 files changed

+22
-9
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+
## [v4.10.0] (2025-09-24)
4+
5+
* Trigger `auth` command from `prompt` by @Kludex in [#1423](https://github.com/pydantic/logfire/pull/1423)
6+
* Remove conditional check on OTEL version for `Gauge` import by @Viicos in [#1426](https://github.com/pydantic/logfire/pull/1426)
7+
38
## [v4.9.0] (2025-09-22)
49

510
* Fix Root Model Not Rendering As Expected by @dhruv-ahuja in [#1396](https://github.com/pydantic/logfire/pull/1396)
@@ -913,3 +918,4 @@ First release from new repo!
913918
[v4.7.0]: https://github.com/pydantic/logfire/compare/v4.6.0...v4.7.0
914919
[v4.8.0]: https://github.com/pydantic/logfire/compare/v4.7.0...v4.8.0
915920
[v4.9.0]: https://github.com/pydantic/logfire/compare/v4.8.0...v4.9.0
921+
[v4.10.0]: https://github.com/pydantic/logfire/compare/v4.9.0...v4.10.0
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import argparse
2+
from ..auth import DEFAULT_FILE as DEFAULT_FILE, UserTokenCollection as UserTokenCollection, poll_for_token as poll_for_token, request_device_code as request_device_code
3+
from ..config import REGIONS as REGIONS
4+
5+
def parse_auth(args: argparse.Namespace) -> None:
6+
"""Authenticate with Logfire.
7+
8+
This will authenticate your machine with Logfire and store the credentials.
9+
"""

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import argparse
2+
from logfire._internal.cli.auth import parse_auth as parse_auth
23
from logfire._internal.client import LogfireClient as LogfireClient
34
from logfire.exceptions import LogfireConfigError as LogfireConfigError
45
from rich.console import Console

logfire-api/logfire_api/_internal/metrics.pyi

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
import dataclasses
22
from .utils import handle_internal_errors as handle_internal_errors
3-
from _typeshed import Incomplete
43
from abc import ABC
54
from collections.abc import Sequence
6-
from opentelemetry.metrics import CallbackT as CallbackT, Counter, Histogram, Instrument, Meter, MeterProvider, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter, _Gauge
5+
from opentelemetry.metrics import CallbackT as CallbackT, Counter, Histogram, Instrument, Meter, MeterProvider, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter, _Gauge as Gauge
76
from opentelemetry.util.types import Attributes
87
from threading import Lock
98
from typing import Any, Generic, TypeVar
109
from weakref import WeakSet
1110

12-
Gauge: Incomplete
13-
1411
@dataclasses.dataclass
1512
class ProxyMeterProvider(MeterProvider):
1613
provider: MeterProvider
@@ -35,7 +32,7 @@ class _ProxyMeter(Meter):
3532
def create_up_down_counter(self, name: str, unit: str = '', description: str = '') -> UpDownCounter: ...
3633
def create_observable_counter(self, name: str, callbacks: Sequence[CallbackT] | None = None, unit: str = '', description: str = '') -> ObservableCounter: ...
3734
def create_histogram(self, name: str, unit: str = '', description: str = '', **kwargs: Any) -> Histogram: ...
38-
def create_gauge(self, name: str, unit: str = '', description: str = '') -> _Gauge: ...
35+
def create_gauge(self, name: str, unit: str = '', description: str = '') -> Gauge: ...
3936
def create_observable_gauge(self, name: str, callbacks: Sequence[CallbackT] | None = None, unit: str = '', description: str = '') -> ObservableGauge: ...
4037
def create_observable_up_down_counter(self, name: str, callbacks: Sequence[CallbackT] | None = None, unit: str = '', description: str = '') -> ObservableUpDownCounter: ...
4138
InstrumentT = TypeVar('InstrumentT', bound=Instrument)

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.9.0"
7+
version = "4.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 = "4.9.0"
7+
version = "4.10.0"
88
description = "The best Python observability tool! 🪵🔥"
99
requires-python = ">=3.9"
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)