Importing StatusCanonicalCode
from python opentelemetry library is giving error
from opentelemetry.trace.status import StatusCanonicalCode
Error msg:
*** ImportError: cannot import name 'StatusCanonicalCode' from 'opentelemetry.trace.status'
The file opentelemetry.trace.status doesn't have StatusCanonicalCode
class.
But these documentations and specifications gives this import as a valid example:
https://opentelemetry.lightstep.com/python/tracing/ -> search for StatusCanonicalCode
The same import is also present in jaeger library.
Am I missing something here?