Adding an error
label to the function.calls
metric?
#76
Replies: 2 comments 5 replies
-
Hmm, when I first read this I thought that sounds very useful, but the more I think about it the less useful it becomes. Some questions I have:
It appears to me that the value in this proposition would exist in the cases where saying 'this function is producing a lot of errors' still leaves you with little idea as to what could actually be happening. I guess my assumption was that in most cases this wouldn't be the case because you know what the function is doing, therefore how it could fail. |
Beta Was this translation helpful? Give feedback.
-
I'm torn on this. On the one hand I agree this would probably be helpful for engineers debugging an issue to get more details from the on-set about the nature of it. On the other hand I'm really not sure the drawbacks outweight the benefits here. In Rust, enums are helpful indications of an error value that inform you quite well about the feature. On the other hand e.g.: in JavaScript there are 7 native error types ( |
Beta Was this translation helpful? Give feedback.
-
If you're debugging an alert based on an SLO and you go to the SLO dashboard to see which functions are erroring, the first question you're going to want to ask for the functions that have had high error rates recently is what types of errors they were.
Should we add an
error
label to thefunction.calls
metric that would tell you the type of error the function is returning/throwing?The intention would be for the implementations to take only the error type (not the full string of an error), or use error enum variant names in languages that have those. The values themselves wouldn't be machine-interpretable but the idea would be to provide human debuggers some additional information when they're looking at the metrics for a function.
I think the main downside to this would be the implications for the cardinality of the metrics. If you had a function returning a lot of different errors, you might increase the metrics cardinality more than we really want to.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions