Skip to content

codeintel: dont emit error metric when inference limit hit

Administrator requested to merge nsc/index-scheduler-dont-emit-limiterr into main

Created by: Strum355

Previously, we would emit an error metric if we didn't infer anything because of hitting file count or file size limits. This caused unnecessary noise in the error rate panel attributable to a reasonable reason to "soft-fail".

This PR makes us ignore limit errors for metrics, but continue emitting them for logs etc

Test plan

Only affects monitoring output, essentially an if statement

Merge request reports

Loading