You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In code, the error is set when status code is >= 400 or < 200 . So why this tag exists, if you already send status code? Is it because in another project for b5, you doesn`t have status code and need to set some info about error?
The text was updated successfully, but these errors were encountered:
The information of what is an error is actually application and domain specific. For example, in GraphQL applications, errors are communicated in a HTTP 200 response payload! What this lib implements as default is just what we normally see in java servlet application development. But, for the tech agnostic Protocol we have, we cannot assume such a thing!
That's we why we have 2 different tags: status and isError, making it easier to PromQL developers implement correct, meaningful and reusable alerts and dashboards!
In another note, I think it would be nice to be able to override such behaviour implemented by default in this lib. If you need to customize your isError label values relationship with the ones from status label, feel free to open an issue!
In code, the error is set when status code is >= 400 or < 200 . So why this tag exists, if you already send status code? Is it because in another project for b5, you doesn`t have status code and need to set some info about error?
The text was updated successfully, but these errors were encountered: