Skip to content

Commit 8aba091

Browse files
authored
chore: Bump semantic-conventions to v1.36.0 (#3064)
1 parent 34d6d50 commit 8aba091

File tree

7 files changed

+1425
-357
lines changed

7 files changed

+1425
-357
lines changed

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

Lines changed: 7 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.34.0
9-
WEAVER_VERSION=v0.15.2
8+
SPEC_VERSION=1.36.0
9+
WEAVER_VERSION=v0.16.1
1010

1111
cd "$CRATE_DIR"
1212

@@ -58,4 +58,9 @@ expression='
5858
# TODO: This workaround should be removed once the upstream generator handles this correctly.
5959
"${SED[@]}" 's/<key>/`key`/g' src/attribute.rs
6060

61+
# Patch: rustdoc warns about bare URLs in doc comments.
62+
# The following line wraps the specific Kubernetes ResourceRequirements URL with <...>
63+
# as suggested by rustdoc warnings, so it becomes a clickable link and the warning goes away.
64+
"${SED[@]}" -E 's|(/// See )(https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#resourcerequirements-v1-core)( for details)|\1<\2>\3|g' src/metric.rs
65+
6166
cargo fmt

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.34.0"
17+
schema_url: "https://opentelemetry.io/schemas/1.36.0"
1818
exclude_root_namespace: []
1919
excluded_attributes: ["messaging.client_id"]
2020

0 commit comments

Comments
 (0)