diff --git a/semantic-conventions/src/opentelemetry/semconv/model/semantic_convention.py b/semantic-conventions/src/opentelemetry/semconv/model/semantic_convention.py index 94136f90..ad087846 100644 --- a/semantic-conventions/src/opentelemetry/semconv/model/semantic_convention.py +++ b/semantic-conventions/src/opentelemetry/semconv/model/semantic_convention.py @@ -132,7 +132,12 @@ def _get_attributes(self, templates: Optional[bool]): if templates is None or templates == AttributeType.is_template_type(attr.attr_type) ], - key=lambda attr: (attr.requirement_level.value if attr.requirement_level else RequirementLevel.OPT_IN.value, attr.fqn), + key=lambda attr: ( + attr.requirement_level.value + if attr.requirement_level + else RequirementLevel.OPT_IN.value, + attr.fqn, + ), ) def __init__(self, group):