Skip to content

Commit 3446c7c

Browse files
authored
[infra] Create & use a single signal-status shortcode (#4674)
1 parent 4b1f5e3 commit 3446c7c

File tree

5 files changed

+18
-32
lines changed

5 files changed

+18
-32
lines changed

content/en/docs/concepts/signals/logs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Logs are a [stable](/docs/specs/otel/versioning-and-stability/#stable) signal in
9595
the OpenTelemetry specification. For the individual language specific
9696
implementations of the Logs API & SDK, the status is as follows:
9797

98-
{{% logs-support-table %}}
98+
{{% signal-support-table "logs" %}}
9999

100100
## Specification
101101

content/en/docs/concepts/signals/metrics.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Metrics are a [stable](/docs/specs/otel/versioning-and-stability/#stable) signal
114114
in the OpenTelemetry specification. For the individual language specific
115115
implementations of the Metrics API & SDK, the status is as follows:
116116

117-
{{% metrics-support-table " " %}}
117+
{{% signal-support-table "metrics" %}}
118118

119119
## Specification
120120

layouts/shortcodes/logs-support-table.md

-15
This file was deleted.

layouts/shortcodes/metrics-support-table.md

-15
This file was deleted.
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{ $data := $.Site.Data.instrumentation }}
2+
{{ $signal := .Get 0 -}}
3+
4+
Language | {{ humanize $signal }} |
5+
| --- | --- |
6+
| [C++](/docs/languages/cpp/) | {{ index $data.cpp.status $signal | humanize }} |
7+
| [C#/.NET](/docs/languages/net/) | {{ index $data.dotnet.status $signal | humanize }} |
8+
| [Erlang/Elixir](/docs/languages/erlang/) | {{ index $data.erlang.status $signal | humanize }} |
9+
| [Go](/docs/languages/go/) | {{ index $data.go.status $signal | humanize }} |
10+
| [Java](/docs/languages/java/) | {{ index $data.java.status $signal | humanize }} |
11+
| [JavaScript](/docs/languages/js/) | {{ index $data.js.status $signal | humanize }} |
12+
| [PHP](/docs/languages/php/) | {{ index $data.php.status $signal | humanize }} |
13+
| [Python](/docs/languages/python/) | {{index $data.python.status $signal | humanize }} |
14+
| [Ruby](/docs/languages/ruby/) | {{ index $data.ruby.status $signal | humanize }} |
15+
| [Rust](/docs/languages/rust/) | {{ index $data.rust.status $signal | humanize }} |
16+
| [Swift](/docs/languages/swift/) | {{ index $data.swift.status $signal | humanize }} |

0 commit comments

Comments
 (0)