OpenTelemetry tracing errors should use RecordError function #2384
Labels
bughancement
It's kind of a bug, but mostly an enhancement.
observability
A bug relating to observability components (metrics, logging, tracing, etc)
OpenTelemetry contains two functions called
RecordError
andSetStatus
on the span struct to record errors in the spans.Currently, this is how we are storing errors on spans:
This doesn't follow OpenTelemetry's specification on error handling, and then spans will not be tagged as an "error" on tracing visualization platforms.
Since we have this on the docs:
We can change the behavior, right?
The text was updated successfully, but these errors were encountered: