Closed lmolkova closed 2 weeks ago
Closing this one as not viable (constants without _
as AWSELASTICBEANSTALK
are not just ugly, but also unreadable) - https://github.com/open-telemetry/semantic-conventions/issues/1118#issuecomment-2153771721
https://github.com/xrmx/opentelemetry-python/pull/1 is an alternative.
Description
Code generator generates the same attribute name constant for
attribute.name
andattribute_name
. As a result, if attribute is renamed (_
is changed to.
or vice versa), the value of attribute changes, but the name stays the same.It's ambiguous - see https://github.com/open-telemetry/semantic-conventions/issues/1031 and https://github.com/open-telemetry/semantic-conventions/issues/1118 for the discussion.
Based on https://github.com/open-telemetry/semantic-conventions/issues/1118, the semconv recommendation would be to:
_
when generating any constants in the code (fields, methods, class names, etc)_
This PR demonstrates the result of such naming policy change.
Type of change
Please delete options that are not relevant.
Checklist: