Skip to content

attributes_sort failes when attribute does not have a requirement_level #1314

@michaelvanstraten

Description

@michaelvanstraten

Describe the bug
The attributes_sort minijinja filter fails when one (or multiple) attributes are missing the requirement_level.

To Reproduce
Steps to reproduce the behavior:

Run the v2 forge via weaver registry generate --v2 and make use of the attribute_sort filter on the attributes field of a group.

Expected behavior
I expect the requirement level on an attribute to default to recommended like the event, metric and span signals do here.

Additional context

None yet

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Labels

template engineThis represents an issue around our template engine, e.g. jinja filters, tests, functions.

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions