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
+7
View File
@@ -37,6 +37,12 @@ services:
stop_grace_period: 2s
haproxy:
ports: !reset []
# API (docker compose run) и worker — без телеметрии: сервисы телеметрии
# стенд не запускает, методика и сроки прежние (design change
# otel-telemetry, решение 20)
api:
environment:
TELEMETRY__ENABLED: "false"
# свой брокер со своим volume, порт AMQP не публикуется
rabbitmq:
ports: !reset []
@@ -64,6 +70,7 @@ services:
WORKER__RENDER_TIMEOUT_SECONDS: "8"
WORKER__RENDER_CPU_LIMIT_SECONDS: "3"
WORKER__GRACEFUL_SHUTDOWN_SECONDS: "2"
TELEMETRY__ENABLED: "false"
# уборщик с grace и интервалом, сравнимыми со временем теста (design
# change upload-consistency, решение 10). Grace 20 с больше границы живой
# загрузки при сроках по умолчанию (2 × 6 + 5 = 17 с): занижать сроки ради