According to the documentation the metrics processor adds a status_code label to each metric, which can have following values:
STATUS_CODE_UNSET - Result of the span was unset/unknown
STATUS_CODE_OK - The span operation completed successfully
STATUS_CODE_ERROR - The span operation completed with an error
(Span metrics | Grafana Tempo documentation)
Even with this short description it is still unclear to me what those status codes mean and how they can be used effectively.
Some questions that come to my mind are: What even is the result of span? And in what cases can it be unknown? What types of erros can occur during a span operation?
It might be helpful for me to have some examples for these status codes. Also some guidance on how they can be used to generate meaningful insights is appreciated.