-
Notifications
You must be signed in to change notification settings - Fork 174
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
Codegen: proper casing for multiword attribute/metric names #599
Comments
Options:
|
What does this mean? My vote, although I may not understand the problem well enough, would be to just make the multiword products look awkward (only capitalize first letter) and also to have some kind of verification run on semconv repo (as part of PR submit) that can find conflicts that would prevent codegen. I think that's option 1? |
I think the (lowercase) attribute value is the important part. I think it's less important that the (uppercase) constant name or the (mixed) class name are pretty. e.g., I think this would be ok:
|
Thanks for the input. So, let's go ahead with option 1 - do nothing for the time being. I don't think we need to add codegen checks. If we renamed |
We have a bunch of product names that consist of 2+ words as namespaces without
_
between them:...
they look fine in lowercase (
cloudevents.event_id
), but are not friendly to code generation.E.g. Java and .NET would use
CloudEvents.CLOUDEVENTS_EVENT_ID
orCloudEvents.EventId
constants.Also, since code generation removes underscores at least for some languages, we should not allow to define namespaces/names that differ in
_
only: e.g.cloud_events
cannot be defined to avoid collision withcloudevents
in generated code.The text was updated successfully, but these errors were encountered: