From 298ede161e7b29b1b20a1378737b2419382c28ed Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Fri, 5 Aug 2022 15:25:20 +0000 Subject: [PATCH] don't strip prefix --- .../src/opentelemetry/semconv/model/semantic_convention.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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