Skip to content

Commit 1570927

Browse files
committed
doc generation fix
1 parent 0c0e327 commit 1570927

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ fi
5151
"${SED[@]}" "s/\(opentelemetry.io\/schemas\/\)[^\"]*\"/\1$SPEC_VERSION\"/" src/lib.rs
5252

5353
# handle doc generation failures
54-
"${SED[@]}" 's/\[2\]\.$//' src/resource.rs # remove trailing [2] from few of the doc comments
54+
"${SED[@]}" 's/\[2\]\.$//' src/resource.rs src/trace.rs # remove trailing [2] from few of the doc comments
5555

5656
cargo fmt

opentelemetry-semantic-conventions/src/trace.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -657,14 +657,14 @@ pub const CODE_STACKTRACE: &str = "code.stacktrace";
657657
/// - `otelcontribcol`
658658
pub const CONTAINER_COMMAND: &str = "container.command";
659659

660-
/// All the command arguments (including the command/executable itself) run by the container. [2].
660+
/// All the command arguments (including the command/executable itself) run by the container.
661661
///
662662
/// # Examples
663663
///
664664
/// - `otelcontribcol, --config, config.yaml`
665665
pub const CONTAINER_COMMAND_ARGS: &str = "container.command_args";
666666

667-
/// The full command run by the container as a single string representing the full command. [2].
667+
/// The full command run by the container as a single string representing the full command.
668668
///
669669
/// # Examples
670670
///

0 commit comments

Comments
 (0)