feat: add OpenTelemetry SDK, collector and telemetry stores

Collector (contrib), Prometheus, Loki, Tempo and Grafana with provisioning
from git; SDK in API and worker with level 3 metrics, traces and logs
carrying trace_id/span_id; telemetry off by default outside the stand;
broker healthcheck runs as the broker user so a fresh stand starts once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-11 10:19:50 +03:00
co-authored by Claude Opus 5.5
parent 9b35c256b7
commit a4497e3f32
62 changed files with 6175 additions and 214 deletions
+8
View File
@@ -27,6 +27,14 @@ dependencies = [
"aio-pika>=10.2.1,<11",
# варианты в процессе обработки; импортирует только src/utils/image_variants.py
"pillow>=13,<14",
# телеметрия API и worker (design change otel-telemetry, решения 2 и 4):
# только SDK и экспортёр OTLP/HTTP, библиотек автоинструментирования нет.
# Узко в пределах 1.45.x: API логов Python (`opentelemetry._logs`,
# `opentelemetry.sdk._logs`) без стабильного имени, разбор записи журнала
# покрыт быстрым тестом
"opentelemetry-api>=1.45.2,<1.46",
"opentelemetry-sdk>=1.45.2,<1.46",
"opentelemetry-exporter-otlp-proto-http>=1.45.2,<1.46",
]
[project.optional-dependencies]