logbrew-fastapi 0.1.6__tar.gz → 0.1.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/PKG-INFO +6 -3
  2. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/README.md +2 -0
  3. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/pyproject.toml +4 -3
  4. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi/__init__.py +2 -2
  5. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi.egg-info/PKG-INFO +6 -3
  6. logbrew_fastapi-0.1.7/src/logbrew_fastapi.egg-info/requires.txt +2 -0
  7. logbrew_fastapi-0.1.6/src/logbrew_fastapi.egg-info/requires.txt +0 -2
  8. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/setup.cfg +0 -0
  9. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi/examples/__init__.py +0 -0
  10. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi/examples/__main__.py +0 -0
  11. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi/examples/dependency_spans.py +0 -0
  12. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi/examples/outbound_http.py +0 -0
  13. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi/examples/readme_example.py +0 -0
  14. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi/examples/real_user_smoke.py +0 -0
  15. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi/py.typed +0 -0
  16. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi.egg-info/SOURCES.txt +0 -0
  17. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi.egg-info/dependency_links.txt +0 -0
  18. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/src/logbrew_fastapi.egg-info/top_level.txt +0 -0
  19. {logbrew_fastapi-0.1.6 → logbrew_fastapi-0.1.7}/tests/test_fastapi_integration.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: logbrew-fastapi
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: FastAPI integration for capturing LogBrew request spans and exceptions.
5
5
  Author: LogBrew
6
6
  License-Expression: MIT
@@ -11,14 +11,15 @@ Classifier: Framework :: FastAPI
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.10
14
15
  Classifier: Programming Language :: Python :: 3.11
15
16
  Classifier: Programming Language :: Python :: 3.12
16
17
  Classifier: Programming Language :: Python :: 3.13
17
18
  Classifier: Typing :: Typed
18
- Requires-Python: >=3.11
19
+ Requires-Python: >=3.10
19
20
  Description-Content-Type: text/markdown
20
21
  Requires-Dist: fastapi>=0.111.1
21
- Requires-Dist: logbrew-sdk<0.2.0,>=0.1.5
22
+ Requires-Dist: logbrew-sdk<0.2.0,>=0.1.6
22
23
 
23
24
  # logbrew-fastapi
24
25
 
@@ -34,6 +35,8 @@ FastAPI integration for capturing LogBrew request spans and exceptions with the
34
35
  python3 -m pip install logbrew-fastapi
35
36
  ```
36
37
 
38
+ `logbrew-fastapi` requires Python 3.10 or newer.
39
+
37
40
  The package is typed, ships `py.typed`, and installs the compatible core `logbrew-sdk`. It supports FastAPI 0.111.1 and later. It does not install or replace application-owned HTTP clients such as `httpx` or `httpx2`. Keep the real project key in application configuration rather than source control.
38
41
 
39
42
  ## Production setup
@@ -12,6 +12,8 @@ FastAPI integration for capturing LogBrew request spans and exceptions with the
12
12
  python3 -m pip install logbrew-fastapi
13
13
  ```
14
14
 
15
+ `logbrew-fastapi` requires Python 3.10 or newer.
16
+
15
17
  The package is typed, ships `py.typed`, and installs the compatible core `logbrew-sdk`. It supports FastAPI 0.111.1 and later. It does not install or replace application-owned HTTP clients such as `httpx` or `httpx2`. Keep the real project key in application configuration rather than source control.
16
18
 
17
19
  ## Production setup
@@ -4,11 +4,11 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "logbrew-fastapi"
7
- version = "0.1.6"
7
+ version = "0.1.7"
8
8
  description = "FastAPI integration for capturing LogBrew request spans and exceptions."
9
9
  readme = "README.md"
10
10
  license = "MIT"
11
- requires-python = ">=3.11"
11
+ requires-python = ">=3.10"
12
12
  authors = [
13
13
  { name = "LogBrew" }
14
14
  ]
@@ -19,6 +19,7 @@ classifiers = [
19
19
  "Intended Audience :: Developers",
20
20
  "Programming Language :: Python :: 3",
21
21
  "Programming Language :: Python :: 3 :: Only",
22
+ "Programming Language :: Python :: 3.10",
22
23
  "Programming Language :: Python :: 3.11",
23
24
  "Programming Language :: Python :: 3.12",
24
25
  "Programming Language :: Python :: 3.13",
@@ -26,7 +27,7 @@ classifiers = [
26
27
  ]
27
28
  dependencies = [
28
29
  "fastapi>=0.111.1",
29
- "logbrew-sdk>=0.1.5,<0.2.0"
30
+ "logbrew-sdk>=0.1.6,<0.2.0"
30
31
  ]
31
32
 
32
33
  [project.urls]
@@ -6,7 +6,7 @@ import time
6
6
  import uuid
7
7
  from collections.abc import Callable
8
8
  from dataclasses import dataclass
9
- from datetime import UTC, datetime
9
+ from datetime import datetime, timezone
10
10
  from importlib.metadata import PackageNotFoundError
11
11
  from importlib.metadata import version as distribution_version
12
12
  from typing import Any
@@ -244,7 +244,7 @@ def _delivery_error_code(error: Exception) -> str:
244
244
  def utc_timestamp() -> str:
245
245
  """Return a LogBrew-compatible UTC timestamp."""
246
246
 
247
- return datetime.now(UTC).isoformat(timespec="milliseconds").replace("+00:00", "Z")
247
+ return datetime.now(timezone.utc).isoformat(timespec="milliseconds").replace("+00:00", "Z")
248
248
 
249
249
 
250
250
  def request_name(request: Request) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: logbrew-fastapi
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: FastAPI integration for capturing LogBrew request spans and exceptions.
5
5
  Author: LogBrew
6
6
  License-Expression: MIT
@@ -11,14 +11,15 @@ Classifier: Framework :: FastAPI
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.10
14
15
  Classifier: Programming Language :: Python :: 3.11
15
16
  Classifier: Programming Language :: Python :: 3.12
16
17
  Classifier: Programming Language :: Python :: 3.13
17
18
  Classifier: Typing :: Typed
18
- Requires-Python: >=3.11
19
+ Requires-Python: >=3.10
19
20
  Description-Content-Type: text/markdown
20
21
  Requires-Dist: fastapi>=0.111.1
21
- Requires-Dist: logbrew-sdk<0.2.0,>=0.1.5
22
+ Requires-Dist: logbrew-sdk<0.2.0,>=0.1.6
22
23
 
23
24
  # logbrew-fastapi
24
25
 
@@ -34,6 +35,8 @@ FastAPI integration for capturing LogBrew request spans and exceptions with the
34
35
  python3 -m pip install logbrew-fastapi
35
36
  ```
36
37
 
38
+ `logbrew-fastapi` requires Python 3.10 or newer.
39
+
37
40
  The package is typed, ships `py.typed`, and installs the compatible core `logbrew-sdk`. It supports FastAPI 0.111.1 and later. It does not install or replace application-owned HTTP clients such as `httpx` or `httpx2`. Keep the real project key in application configuration rather than source control.
38
41
 
39
42
  ## Production setup
@@ -0,0 +1,2 @@
1
+ fastapi>=0.111.1
2
+ logbrew-sdk<0.2.0,>=0.1.6
@@ -1,2 +0,0 @@
1
- fastapi>=0.111.1
2
- logbrew-sdk<0.2.0,>=0.1.5