-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enum attributes with allow_custom_values not set defaults to true #218
Comments
Adding @jsuereth and @lmolkova to this issue as I'm not sure of the final decision regarding allow_custom_values If I recall correctly, in March this year, the Semantic Conventions SIG decided to remove this field entirely. I believe the reasoning was that with allow_custom_values set to false, schema evolution was not feasible. Liudmila or Josh, please confirm. |
That would make sense. The specific issue we have is since we don't have enums in Erlang or Elixir, we treat these only as types for guidance, whereas a standard attribute has both a function returning the value and a type signature. When custom values are allowed, we append If |
The The TL;DR - all enums are open, there are no closed enums. In other words, if someone does not use auto-generated semconv, they can write |
Gotcha. Thanks for the context @lmolkova. We'll adjust our approach to supporting them. 👍🏻 |
Describe the bug
I'm running into an issue where enum attributes are not lining up with what is in the spec. Every enum attribute in the registry (rpc for example) has
"allow_custom_values": true
present.system
is the only attribute that allows custom values. No other enums in that group explicitly set the value. Updating the file with"allow_custom_values": false
for the remaining enums produces the expected outputTo Reproduce
Steps to reproduce the behavior:
allow_custom_values
set in the model will have it added with a default value of true.allow_custom_values
for the remaining enums to false inrpc.yaml
.Expected behavior
Enum attributes without
allow_custom_values
explicitly set in the model should default tofalse
.Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: