diff --git a/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py b/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py index 1b124c0b..7ba33983 100644 --- a/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py +++ b/semantic-conventions/src/opentelemetry/semconv/templating/markdown/__init__.py @@ -104,12 +104,15 @@ def __init__( f"{spec_root_url}/specification/common/attribute-requirement-level.md" ) req_level = f"[Requirement Level]({attribute_req_level_url})" - type = f"[Type]({spec_root_url}/specification/common/README.md#attribute)" + attribute_type = ( + f"[Type]({spec_root_url}/specification/common/README.md#attribute)" + ) - self.table_headers = f"| Attribute | {type} | Description | Examples | {req_level} |\n|---|---|---|---|---|\n" - self.table_headers_omitting_req_level = ( - f"| Attribute | {type} | Description | Examples |\n|---|---|---|---|\n" + self.table_headers = ( + f"| Attribute | {attribute_type} | Description | Examples | {req_level} |" + "\n|---|---|---|---|---|\n" ) + self.table_headers_omitting_req_level = f"| Attribute | {attribute_type} | Description | Examples |\n|---|---|---|---|\n" def to_markdown_attr( self,