Version 0.4.0
All checks were successful
Run linters on applied template / Python 3.13 lint and build (push) Successful in 1m40s

Changes:
- put ObservabilityMiddleware before ExceptionHandlerMiddleware to avoid repetative code
- add application startup and last metrics update metrics along with CPU usage metric and threads count
- move host and port to new uvicorn section at config along with new reload and forwarded_allow_ips
- add request_id and remove trace_id/span_id generation if tracing is disabled
- move logging logic from utils to observability
- pass trace_id/span_id in HEX form
This commit is contained in:
2026-01-03 11:01:43 +03:00
parent b8acb017fd
commit 53f14a8624
26 changed files with 901 additions and 730 deletions

View File

@@ -15,13 +15,14 @@ dependencies = [
"pyyaml (>=6.0.3,<7.0.0)",
"uvicorn (>=0.38.0,<0.39.0)",
"asyncpg (>=0.30.0,<0.31.0)",
"opentelemetry-exporter-otlp (>=1.38,<2.0)",
"opentelemetry-exporter-prometheus (>=0.59b0,<0.60)",
"opentelemetry-semantic-conventions (>=0.59b0,<0.60)",
"opentelemetry-instrumentation-logging (>=0.59b0,<0.60)",
"opentelemetry-exporter-otlp (>=1.39.1,<2.0)",
"opentelemetry-exporter-prometheus (>=0.60b1,<0.61)",
"opentelemetry-semantic-conventions (>=0.60b1,<0.61)",
"opentelemetry-instrumentation-logging (>=0.60b1,<0.61)",
"aiohttp (>=3.13.2,<4.0.0)",
"email-validator (>=2.3.0,<3.0.0)",
"pyjwt (>=2.10.1,<3.0.0)",
"psutil (>=7.2.1,<8.0.0)",
]
[build-system]