Skip to content

Commit 296314b

Browse files
authored
Release v4.7.0 (#1401)
1 parent f86e4ce commit 296314b

File tree

9 files changed

+10
-41
lines changed

9 files changed

+10
-41
lines changed

CHANGELOG.md

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

3+
## [v4.7.0] (2025-09-12)
4+
5+
* Update to OpenTelemetry SDK 1.37.0, drop support for <1.35.0 by @alexmojaki in [#1398](https://github.com/pydantic/logfire/pull/1398)
6+
37
## [v4.6.0] (2025-09-10)
48

59
* Fix: check `LOGFIRE_IGNORE_NO_CONFIG` from environment when needed by @Lftobs in [#1379](https://github.com/pydantic/logfire/pull/1379)
@@ -896,3 +900,4 @@ First release from new repo!
896900
[v4.4.0]: https://github.com/pydantic/logfire/compare/v4.3.6...v4.4.0
897901
[v4.5.0]: https://github.com/pydantic/logfire/compare/v4.4.0...v4.5.0
898902
[v4.6.0]: https://github.com/pydantic/logfire/compare/v4.5.0...v4.6.0
903+
[v4.7.0]: https://github.com/pydantic/logfire/compare/v4.6.0...v4.7.0

logfire-api/logfire_api/_internal/exporters/dynamic_batch.pyi

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ class DynamicBatchSpanProcessor(WrapperSpanProcessor):
1414
final_delay: Incomplete
1515
num_processed: int
1616
def __init__(self, exporter: SpanExporter) -> None: ...
17-
schedule_delay_millis: Incomplete
1817
def on_end(self, span: ReadableSpan) -> None: ...
1918
@property
2019
def batch_processor(self): ...
@@ -24,11 +23,3 @@ class DynamicBatchSpanProcessor(WrapperSpanProcessor):
2423
def schedule_delay_millis(self) -> float: ...
2524
@schedule_delay_millis.setter
2625
def schedule_delay_millis(self, value: float): ...
27-
@property
28-
def batch_processor(self): ...
29-
@property
30-
def span_exporter(self) -> SpanExporter: ...
31-
@property
32-
def schedule_delay_millis(self) -> float: ...
33-
@schedule_delay_millis.setter
34-
def schedule_delay_millis(self, value: float): ...

logfire-api/logfire_api/_internal/exporters/logs.pyi

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ class CheckSuppressInstrumentationLogProcessorWrapper(WrapperLogProcessor):
1010
Placed at the root of the tree of processors.
1111
"""
1212
def on_emit(self, log_data: LogData): ...
13-
emit = on_emit
1413

1514
@dataclass
1615
class MainLogProcessorWrapper(WrapperLogProcessor):
1716
scrubber: BaseScrubber
1817
def on_emit(self, log_data: LogData): ...
19-
emit = on_emit

logfire-api/logfire_api/_internal/exporters/wrapper.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,5 @@ class WrapperLogProcessor(LogRecordProcessor):
4747
"""A base class for SpanProcessors that wrap another processor."""
4848
processor: LogRecordProcessor
4949
def on_emit(self, log_data: LogData) -> None: ...
50-
emit = on_emit
51-
def emit(self, log_data: LogData) -> None: ...
52-
on_emit = emit
5350
def shutdown(self): ...
5451
def force_flush(self, timeout_millis: int = 30000): ...

logfire-api/logfire_api/_internal/integrations/system_metrics.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ from logfire import Logfire as Logfire
44
from typing import Literal
55
from typing_extensions import LiteralString
66

7-
MetricName: type[Literal['system.cpu.simple_utilization', 'system.cpu.time', 'system.cpu.utilization', 'system.memory.usage', 'system.memory.utilization', 'system.swap.usage', 'system.swap.utilization', 'system.disk.io', 'system.disk.operations', 'system.disk.time', 'system.network.dropped.packets', 'system.network.packets', 'system.network.errors', 'system.network.io', 'system.network.connections', 'system.thread_count', 'process.open_file_descriptor.count', 'process.context_switches', 'process.cpu.time', 'process.cpu.utilization', 'process.cpu.core_utilization', 'process.memory.usage', 'process.memory.virtual', 'process.thread.count', 'process.runtime.gc_count']]
7+
MetricName: type[Literal['system.cpu.simple_utilization', 'system.cpu.time', 'system.cpu.utilization', 'system.memory.usage', 'system.memory.utilization', 'system.swap.usage', 'system.swap.utilization', 'system.disk.io', 'system.disk.operations', 'system.disk.time', 'system.network.dropped.packets', 'system.network.packets', 'system.network.errors', 'system.network.io', 'system.network.connections', 'system.thread_count', 'process.open_file_descriptor.count', 'process.context_switches', 'process.cpu.time', 'process.cpu.utilization', 'process.cpu.core_utilization', 'process.memory.usage', 'process.memory.virtual', 'process.thread.count', 'process.runtime.gc_count', 'cpython.gc.collected_objects', 'cpython.gc.collections', 'cpython.gc.uncollectable_objects']]
88
Config = dict[MetricName, Iterable[str] | None]
99
CPU_FIELDS: list[LiteralString]
1010
MEMORY_FIELDS: list[LiteralString]

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

release/push.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -76,28 +76,6 @@ def open_pull_request(version: str):
7676
return response.json()['html_url']
7777

7878

79-
def create_github_release(new_version: str, notes: str):
80-
"""Create a new release on GitHub."""
81-
url = f'https://api.github.com/repos/{REPO}/releases'
82-
83-
data = {
84-
'tag_name': f'v{new_version}',
85-
'name': f'v{new_version}',
86-
'body': notes,
87-
'draft': True,
88-
}
89-
90-
response = requests.post(
91-
url,
92-
headers={
93-
'Authorization': f'Bearer {GITHUB_TOKEN}',
94-
'Accept': 'application/vnd.github+json',
95-
},
96-
json=data,
97-
)
98-
response.raise_for_status()
99-
100-
10179
if __name__ == '__main__':
10280
"""Automate the release draft + PR creation process."""
10381

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)