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:
@@ -118,6 +118,10 @@ services:
|
||||
image: mtusi-messenger:bench
|
||||
restart: "no"
|
||||
volumes: !reset []
|
||||
environment:
|
||||
# телеметрия выключена: методика и бюджеты стенда прежние (design change
|
||||
# otel-telemetry, решение 20); сервисы телеметрии стенд не запускает
|
||||
TELEMETRY__ENABLED: "false"
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
@@ -144,6 +148,9 @@ services:
|
||||
# размер 500k с наполнением идёт ~25 мин; на медленном хосте срок
|
||||
# 3600 с по умолчанию мог бы истечь посреди прогона и дать 401
|
||||
AUTH__SESSION_TTL_SECONDS: ${BENCH_SESSION_TTL_SECONDS:?run make bench}
|
||||
# телеметрия выключена, как у worker (design change otel-telemetry,
|
||||
# решение 20): вариант трека 1 с телеметрией включает её явно
|
||||
TELEMETRY__ENABLED: "false"
|
||||
deploy:
|
||||
replicas: ${BENCH_API_REPLICAS:?run make bench}
|
||||
resources:
|
||||
|
||||
Reference in New Issue
Block a user