diff --git a/semantic-conventions/src/opentelemetry/semconv/model/semantic_attribute.py b/semantic-conventions/src/opentelemetry/semconv/model/semantic_attribute.py index fbd4629f..f22a9bbd 100644 --- a/semantic-conventions/src/opentelemetry/semconv/model/semantic_attribute.py +++ b/semantic-conventions/src/opentelemetry/semconv/model/semantic_attribute.py @@ -320,7 +320,7 @@ def parse_stability_deprecated(stability, deprecated, position_data): if "stability" in position_data else position_data["deprecated"], ) - return stability or StabilityLevel.EXPERIMENTAL, deprecated + return stability, deprecated @staticmethod def check_stability(stability_value, position): diff --git a/semantic-conventions/src/opentelemetry/semconv/templating/code.py b/semantic-conventions/src/opentelemetry/semconv/templating/code.py index 9bd5892b..1685d967 100644 --- a/semantic-conventions/src/opentelemetry/semconv/templating/code.py +++ b/semantic-conventions/src/opentelemetry/semconv/templating/code.py @@ -178,7 +178,7 @@ def is_deprecated(obj: typing.Union[SemanticAttribute, BaseSemanticConvention]) def is_experimental( obj: typing.Union[SemanticAttribute, BaseSemanticConvention] ) -> bool: - return obj.stability == StabilityLevel.EXPERIMENTAL + return obj.stability is None or obj.stability == StabilityLevel.EXPERIMENTAL def is_definition(attribute: SemanticAttribute) -> bool: