Skip to content

Commit 7a01384

Browse files
committed
fix doc
1 parent 0e9e217 commit 7a01384

File tree

3 files changed

+338
-334
lines changed

3 files changed

+338
-334
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,8 @@ 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
64+
6165
cargo fmt

0 commit comments

Comments
 (0)