From 2b08e0ecbd36727769e3d26258fefbf7e2f6cd87 Mon Sep 17 00:00:00 2001 From: Max <145834602+vomar3@users.noreply.github.com> Date: Tue, 21 Jul 2026 11:08:44 +0300 Subject: [PATCH] docs(telemetry): explain why checkMetricErr intentionally ignores errors (#418) * docs(telemetry): explain why checkMetricErr intentionally ignores errors * style: remove trailing space and apply compact formatting --- internal/telemetry/metrics.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/telemetry/metrics.go b/internal/telemetry/metrics.go index fbbfafa..e7c4ecb 100644 --- a/internal/telemetry/metrics.go +++ b/internal/telemetry/metrics.go @@ -67,6 +67,8 @@ func ensureMetrics() { checkMetricErr(err) } +// checkMetricErr intentionally ignores metric registration errors: +// telemetry is best-effort and must not interrupt the main flow. func checkMetricErr(err error) {} func RecordReviewDuration(ctx context.Context, dur time.Duration) {