-
Notifications
You must be signed in to change notification settings - Fork 1.3k
codeintel: Do not alert on limit errors #47751
Conversation
| ErrorFilter: func(err error) observation.ErrorFilterBehaviour { | ||
| if errors.As(err, &inference.LimitError{}) { | ||
| return observation.EmitForDefault.Without(observation.EmitForMetrics) | ||
| return observation.EmitForNone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not even logs? 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error log, nah, it's like a 400-level error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or am I misunderstanding this filter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
400-level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User issue (missing resource, bad auth) not server issue (500 level, actual error to report)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it fine to have it silently not do anything in that case? whats the expected method for admins to see why nothing is happening for example (scoping out the thought process here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're also exposing it via the UI here: https://github.com/sourcegraph/sourcegraph/pull/47748.
Put error filters around inference errors.
Test plan
Tested locally, saw less blather.