refactor(semantic-conventions): weaver 0.13.0 supports a 'stable_only' arg to semconv_attributes (#5687)
This commit is contained in:
parent
4ce5bd1651
commit
baec0a3e65
|
@ -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: .
|
||||
|
|
Loading…
Reference in New Issue