[BUILD] enum CanonicalCode names too generic... conflict with old C defines #2384
Labels
bug
Something isn't working
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Steps to reproduce
We use opentelemetry together with oss-asn library: https://www.oss.com/
What is the expected behavior?
No Problems
What is the actual behavior?
CanonicalCode enums conflict with #defines in the oss C code,
We've been patching CanocicalCode enums with OTEL_ prefix to get around this, ie, OTEL_OUT_OF_RANGE... but the point remains that the enum names are too generic, this can happen if someone does '#define OK 1' as well.
Proposal -> prefix OTEL_ to all the enums in CanonicalCode
The text was updated successfully, but these errors were encountered: