Skip to content

Commit 3df15a1

Browse files
authored
chore: Update semantic conventions v1.29.0, weaver v0.11.0 (#2395)
1 parent b417e84 commit 3df15a1

File tree

9 files changed

+1979
-176
lines changed

9 files changed

+1979
-176
lines changed

opentelemetry-semantic-conventions/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## vNext
44

5+
- Update to [v1.29.0](https://github.com/open-telemetry/semantic-conventions/releases/tag/v1.29.0) of the semantic conventions.
6+
- Update to [v0.11.0](https://github.com/open-telemetry/weaver/releases/tag/v0.11.0) of the semantic conventions.
7+
58
## 0.27.0
69

710
Released 2024-Nov-11

opentelemetry-semantic-conventions/scripts/generate-consts-from-spec.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
55
CRATE_DIR="${SCRIPT_DIR}/../"
66

77
# freeze the spec version and generator version to make generation reproducible
8-
SPEC_VERSION=1.28.0
9-
WEAVER_VERSION=v0.10.0
8+
SPEC_VERSION=1.29.0
9+
WEAVER_VERSION=v0.11.0
1010

1111
cd "$CRATE_DIR"
1212

opentelemetry-semantic-conventions/scripts/templates/registry/rust/attribute.rs.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
{% for root_ns in ctx %}
1313
{% for attr in root_ns.attributes | rejectattr("name", "in", params.excluded_attributes) %}
14-
{{ [attr.brief, concat_if("\n\n## Notes\n\n", attr.note), attr_macros.examples(attr)] | comment }}
14+
{# Escape any `<...>` tags to `[...]` to avoid Rustdoc warnings and HTML parsing issues. #}
15+
{% set safe_note = attr.note | replace('<', '[') | replace('>', ']') %}
16+
{{ [attr.brief, concat_if("\n\n## Notes\n\n", safe_note), attr_macros.examples(attr)] | comment }}
1517
{% if attr is experimental %}
1618
#[cfg(feature = "semconv_experimental")]
1719
{% endif %}

opentelemetry-semantic-conventions/scripts/templates/registry/rust/weaver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ comment_formats:
1414
default_comment_format: rust
1515

1616
params:
17-
schema_url: "https://opentelemetry.io/schemas/1.28.0"
17+
schema_url: "https://opentelemetry.io/schemas/1.29.0"
1818
exclude_root_namespace: []
1919
excluded_attributes: ["messaging.client_id"]
2020

0 commit comments

Comments
 (0)