-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API & SDK signal status: update terminology and links (#4657)
- Loading branch information
Showing
4 changed files
with
36 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{{/* | ||
|
||
Returns the maturity status of the given signal for the given language. | ||
|
||
Arguments: | ||
|
||
.lang the instrumentation language | ||
.signal the signal name; must be a legal field of the Instrumentation data file. | ||
|
||
*/ -}} | ||
|
||
{{ $status := "-" -}} | ||
{{ $signal := .signal -}} | ||
|
||
{{ with index site.Data.instrumentation .lang -}} | ||
{{ with index .status $signal -}} | ||
{{ $statusWeCanLinkTo := "stable development" -}} | ||
{{ $status = cond (or (eq "experimental" .) (eq "in development" .)) "development" . -}} | ||
{{ $humanizedStatus := humanize $status -}} | ||
{{ $status = cond (in $statusWeCanLinkTo $status) | ||
(printf "[%s](/docs/specs/otel/versioning-and-stability/#%s)" $humanizedStatus $status) | ||
(cond (in "alpha beta" $status) | ||
(printf "[%s](https://github.com/open-telemetry/oteps/blob/main/text/0232-maturity-of-otel.md#%s)" $humanizedStatus $status) | ||
$humanizedStatus) | ||
-}} | ||
{{ end -}} | ||
{{ else -}} | ||
{{ errorf "The site.Data.instrumentation map has no language key '%s'." .lang -}} | ||
{{ end -}} | ||
|
||
{{ return $status -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters