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
This commit is contained in:
Max 2026-07-21 11:08:44 +03:00 committed by GitHub
parent 7c7032534e
commit 2b08e0ecbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {