opentelemetry-java
opentelemetry-java copied to clipboard
Fix Span#setStatus
As reported by @laurit, Span#setStatus
implementation doesn't conform to the spec.
Notably:
- Status codes form a priority of
OK > ERROR > UNSET
, where a call to set a lower priority shouldn't be able to override a higher priority status. Currently, its possible for a call withUNSET
and overrideERROR
. - Description should be ignored when status is not
ERROR
, but is not