Skip to content

Commit

Permalink
Update OTLP to 0.20.0 (#2845)
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin authored Jun 9, 2023
1 parent 95de41f commit 17e2c23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion content-modules/opentelemetry-proto
6 changes: 4 additions & 2 deletions scripts/content-modules/adjust-pages.pl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
my $path_base_for_github_subdir = "content/en$specBasePath";
my %versions = qw(
spec: 1.21.0
otlp: main
otlp: 0.20.0
);
my $otelSpecVers = $versions{'spec:'};
my $otlpSpecVers = $versions{'otlp:'};
Expand All @@ -28,9 +28,11 @@ ()
if ($title eq 'OpenTelemetry Specification') {
$title .= " $otelSpecVers";
$frontMatterFromFile =~ s/(linkTitle:) .*/$1 OTel $otelSpecVers/;
} elsif ($title eq 'OpenTelemetry Protocol Specification') {
$frontMatterFromFile =~ s/(title|linkTitle): .*/$& $otlpSpecVers/g;
}
my $titleMaybeQuoted = ($title =~ ':') ? "\"$title\"" : $title;
print "title: $titleMaybeQuoted\n";
print "title: $titleMaybeQuoted\n" if $frontMatterFromFile !~ /title: /;
($linkTitle) = $title =~ /^OpenTelemetry (.*)/;
print "linkTitle: $linkTitle\n" if $linkTitle and $frontMatterFromFile !~ /linkTitle: /;
print "$frontMatterFromFile" if $frontMatterFromFile;
Expand Down

0 comments on commit 17e2c23

Please sign in to comment.