opentelemetry-java icon indicating copy to clipboard operation
opentelemetry-java copied to clipboard

Fix Span#setStatus

Open jack-berg opened this issue 4 months ago • 0 comments

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 with UNSET and override ERROR.
  • Description should be ignored when status is not ERROR, but is not

jack-berg avatar Oct 16 '24 14:10 jack-berg