Skip to content
Discussion options

You must be logged in to vote

The specification does not give normative guidelines for what enum values should be, rather just what status values should be available. Both the opentelemetry-go, OTLP, and collector conform to the specification in this way.

We have discussed this in a prior issue and reached community consensus that we do not want to synchronize the underlying type enum value. Instead we want to encourage users to use the API to access and convert the status type. This is intentional. Casting to the underlying type to convert to the OTLP is not guaranteed to be forwards/backwards compatible. The API should be used to convert named values because named values are the only thing that have semantic meaning.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Salec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants