Skip to content

Commit baec0a3

Browse files
authored
refactor(semantic-conventions): weaver 0.13.0 supports a 'stable_only' arg to semconv_attributes (#5687)
1 parent 4ce5bd1 commit baec0a3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/semconv/templates/registry/stable/weaver.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ comment_formats:
1616
escape_backslashes: true
1717
default_comment_format: jsdoc
1818

19-
# `exclude_stability` includes `"", null` to skip attributes that
20-
# accidentally do not have a stability set (e.g. https://github.com/open-telemetry/semantic-conventions/issues/1777).
19+
# Notes:
20+
# - Use `""` and `null` with `exclude_stability` to skip attributes/metrics that
21+
# accidentally do not have a stability set
22+
# (e.g. https://github.com/open-telemetry/semantic-conventions/issues/1777).
2123
templates:
2224
- pattern: attributes.ts.j2
2325
# Remove file name prefix when per-pattern params are available https://github.com/open-telemetry/weaver/issues/288
24-
# Switch from 'exclude_stability:["experimental",...]' to 'include_stability:["stable":...]' when available: https://github.com/open-telemetry/weaver/issues/569
2526
filter: >
2627
semconv_attributes({
27-
"exclude_stability": ["experimental", "", null]
28+
"stable_only": true
2829
}) | {
2930
stability: "stable",
3031
attributes: .
@@ -42,7 +43,7 @@ templates:
4243
- pattern: metrics.ts.j2
4344
filter: >
4445
semconv_metrics({
45-
"exclude_stability": ["experimental", "", null]
46+
"stable_only": true
4647
}) | {
4748
stability: "stable",
4849
metrics: .

0 commit comments

Comments
 (0)