Skip to content

The jq function semconv_signal does not filter deprecated #847

@MrAlias

Description

@MrAlias

map(select(.id | endswith(".deprecated") | not))

It looks like this relies on the id having a particular form that is not guanteed. For example:

https://github.com/open-telemetry/semantic-conventions/blob/06536459c81f8d1d83d53bd04ab6638cb1315c42/model/cpu/deprecated.yaml#L2-L18

Similar to semconv_attributes it looks like this should be update to map(select(has("deprecated") | not)):

https://github.com/open-telemetry/weaver/blob/152c88630b1379a403519d3468b38d7cbc4c1097/defaults/jq/semconv.jq#L80C9-L80C45

This fix resolved the lack of filtering in this usecase.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions