refactor(semantic-conventions): weaver 0.13.0 supports a 'stable_only' arg to semconv_attributes (#5687)

This commit is contained in:
Trent Mick 2025-05-15 11:12:12 -07:00 committed by GitHub
parent 4ce5bd1651
commit baec0a3e65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 5 deletions

View File

@ -16,15 +16,16 @@ comment_formats:
escape_backslashes: true
default_comment_format: jsdoc
# `exclude_stability` includes `"", null` to skip attributes that
# accidentally do not have a stability set (e.g. https://github.com/open-telemetry/semantic-conventions/issues/1777).
# Notes:
# - Use `""` and `null` with `exclude_stability` to skip attributes/metrics that
# accidentally do not have a stability set
# (e.g. https://github.com/open-telemetry/semantic-conventions/issues/1777).
templates:
- pattern: attributes.ts.j2
# Remove file name prefix when per-pattern params are available https://github.com/open-telemetry/weaver/issues/288
# Switch from 'exclude_stability:["experimental",...]' to 'include_stability:["stable":...]' when available: https://github.com/open-telemetry/weaver/issues/569
filter: >
semconv_attributes({
"exclude_stability": ["experimental", "", null]
"stable_only": true
}) | {
stability: "stable",
attributes: .
@ -42,7 +43,7 @@ templates:
- pattern: metrics.ts.j2
filter: >
semconv_metrics({
"exclude_stability": ["experimental", "", null]
"stable_only": true
}) | {
stability: "stable",
metrics: .