semantic-conventions/templates/registry/markdown/entity_namespace.md.j2

48 lines
1.4 KiB
Django/Jinja

<!-- NOTE: THIS FILE IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/entity_namespace.md.j2 -->
<!-- markdownlint-capture -->
<!-- markdownlint-disable -->
{%- import 'stability.j2' as stability %}
{%- import 'attribute_table.j2' as at %}
# {{ ctx.id | title_case | acronym }}
{% for e in ctx.groups | sort(attribute='name') %}
{%- set id_attrs = e.attributes | selectattr("role", "equalto", "identifying") -%}
{%- set desc_attrs = e.attributes | selectattr("role", "equalto", "descriptive") -%}
{%- set misc_attrs = e.attributes | rejectattr("role", "defined") -%}
## {{ e.name | title_case | acronym }}
**Status:** {{ stability.badge(e.stability, e.deprecated) }}
**type:** `{{ e.name }}`
**Description:** {{ e.brief | trim }}
{%- if id_attrs | length > 0 %}
**Identifying Attributes:**
{{ at.generate(id_attrs, "", "/docs/registry/attributes", e.lineage.attributes) | trim }}
{%- endif %}
{%- if desc_attrs | length > 0 %}
**Descriptive Attributes:**
{{ at.generate(desc_attrs, "", "/docs/registry/attributes", e.lineage.attributes) | trim }}
{%- endif %}
{%- if misc_attrs | length > 0 %}
**Other Attributes:**
> :warning: This entity definition contains attributes without a role.
> Stable Entities MUST NOT have attributes without a defined role.
{{ at.generate(misc_attrs, "", "/docs/registry/attributes", e.lineage.attributes) | trim}}
{%- endif %}
{% endfor %}
<!-- markdownlint-restore -->