mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-08-15 11:44:15 +00:00
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:
parent
7c7032534e
commit
2b08e0ecbd
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue