Skip to content

Commit d2879b9

Browse files
committed
fix
1 parent 7a01384 commit d2879b9

File tree

3 files changed

+330
-329
lines changed

3 files changed

+330
-329
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +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-
# Fix bare URLs in doc comments: replace 'https://...' or 'http://...' with '<https://...>'
62-
"${SED[@]}" -E 's|(///.*)(https?://[^ ]*)|\1<\2>|g' src/metric.rs
63-
"${SED[@]}" -E 's|(///.*)(https?://[^ ]*)|\1<\2>|g' src/attribute.rs
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
6465

6566
cargo fmt

0 commit comments

Comments
 (0)