diff --git a/semantic-conventions/src/opentelemetry/semconv/model/semantic_convention.py b/semantic-conventions/src/opentelemetry/semconv/model/semantic_convention.py index 08894cb0..46146a6d 100644 --- a/semantic-conventions/src/opentelemetry/semconv/model/semantic_convention.py +++ b/semantic-conventions/src/opentelemetry/semconv/model/semantic_convention.py @@ -123,7 +123,8 @@ def __init__(self, group): self.semconv_id = self.id self.note = group.get("note", "").strip() - self.prefix = group.get("prefix", "").strip() + if group.get("prefix", "") is not None: + self.prefix = group.get("prefix", "").strip() stability = group.get("stability") deprecated = group.get("deprecated") position_data = group.lc.data