Skip to content

Commit

Permalink
Generate semantic conventions for spec v1.10-1.13 (#6213)
Browse files Browse the repository at this point in the history
* Generate semantic conventions for spec v1.10-1.12

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Update changelog

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Update semconv template and generate v1.13.0 conventions

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Update changelog

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

* Add nonstandard and schema constants

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>

Signed-off-by: Anthony J Mirabella <a9@aneurysm9.com>
  • Loading branch information
Aneurysm9 committed Sep 30, 2022
1 parent 6098109 commit a44fc1b
Show file tree
Hide file tree
Showing 18 changed files with 11,787 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
### 💡 Enhancements 💡

- Add config marshaler (#5566)
- Add semantic conventions for specification v1.10-v1.13 (#6213)

## v0.61.0 Beta

Expand Down
12 changes: 7 additions & 5 deletions semconv/template.j2
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ Type: {{ attr.attr_type }}
{%- else %}
Type: Enum
{%- endif %}
{%- if attr.required == Required.ALWAYS %}
Required: Always
{%- elif attr.required == Required.CONDITIONAL %}
Required: {{ attr.required_msg }}
{%- if attr.requirement_level == RequirementLevel.REQUIRED %}
Requirement Level: Required
{%- elif attr.requirement_level == RequirementLevel.CONDITIONALLY_REQUIRED %}
Requirement Level: Conditionally Required{% if attr.requirement_level_msg != "" %} - {{ attr.requirement_level_msg }} {% endif %}
{%- elif attr.requirement_level == RequirementLevel.RECOMMENDED %}
Requirement Level: Recommended{% if attr.requirement_level_msg != "" %} - {{ attr.requirement_level_msg }} {% endif %}
{%- else %}
Required: No
Requirement Level: Optional
{%- endif %}
{{ attr.stability | replace("Level.", ": ") | capitalize }}
{%- if attr.deprecated != None %}
Expand Down
Loading

0 comments on commit a44fc1b

Please sign in to comment.