feat: telemetry cost profile with head sampling, coarse buckets and balanced tail sampling

- [telemetry] trace_sample_ratio (ParentBased(TraceIdRatioBased), 1 keeps
  ParentBased(ALWAYS_ON)) and metric_buckets (default|coarse with SLO bounds),
  export interval <= 30 s; otel.sdk.span.started, span.live dropped; startup
  records name ratio, buckets and interval
- bench: telemetry services on mtusi-bench, TELEMETRY=on switch for uploads
  and queue, make bench_telemetry[_quick] with off/full/full-aa/head/tail/
  metrics/balanced, rare events, lookup from Tempo/Loki/Prometheus, cost
  sampler, verdicts H1-H8 and B1-B5; collector layers and lean Prometheus in
  bench/otel with preflight checks
- REPORT: telemetry cost hypotheses and criteria before the label

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 19:17:25 +03:00
co-authored by Claude Opus 5.5
parent 37f86801d6
commit 509afca89e
43 changed files with 5784 additions and 159 deletions
+23
View File
@@ -0,0 +1,23 @@
# Override включённой телеметрии стенда bench/ (design change
# track1-telemetry-cost, решения 1 и 13): второй -f после bench.compose.yml —
# у вариантов профиля цены телеметрии с телеметрией и у профилей загрузок и
# очереди с TELEMETRY=on. SDK реплик, worker и relay включён и отправляет в
# Collector стенда; доля выбора трасс, набор границ и интервал — значения по
# умолчанию (рабочий стенд), вариант профиля задаёт их своим override
# (.work/variant.compose.yml). Без этого файла телеметрия стенда выключена
# (TELEMETRY__ENABLED: "false" в bench.compose.yml)
services:
api:
environment:
TELEMETRY__ENABLED: "true"
TELEMETRY__OTLP_ENDPOINT: http://otel-collector:4318
worker:
environment:
TELEMETRY__ENABLED: "true"
TELEMETRY__OTLP_ENDPOINT: http://otel-collector:4318
relay:
environment:
TELEMETRY__ENABLED: "true"
TELEMETRY__OTLP_ENDPOINT: http://otel-collector:4318