Describe your environment
Python 3.9 on mac; opentelemetry 1.0.0; jaeger tracer
Steps to reproduce
Trying to set status code of a span to StatusCode.ERROR
span.set_status(tracer.status.StatusCode.ERROR) fails due Status object not having status_code set
What is the expected behavior?
The default value should have worked for Status.status_code
What is the actual behavior?
if status.status_code is not StatusCode.UNSET:
AttributeError: 'StatusCode' object has no attribute 'status_code'
Additional context
Workaround:
err = trace.status.Status(trace.status.StatusCode.ERROR)
span.set_status(err)
Describe your environment
Python 3.9 on mac; opentelemetry 1.0.0; jaeger tracer
Steps to reproduce
Trying to set status code of a span to
StatusCode.ERRORspan.set_status(tracer.status.StatusCode.ERROR)fails due Status object not havingstatus_codesetWhat is the expected behavior?
The default value should have worked for
Status.status_codeWhat is the actual behavior?
Additional context
Workaround: