{{ define "telemetry_output" }} {{ range $k, $v := . }}
{{ partial "heading.html" (dict "text" $k "level" 4) }} {{ with $v.type }} {{ partial "badge.html" (dict "word" $v.type "color" "gray") }} {{ end }} {{ with $v.description }}
{{ . | markdownify }}
{{ end }} {{ if $v.deprecated }}
{{ partial "heading.html" (dict "text" "Deprecated" "level" 5 "toc_hide" true) }}
{{ if $v.deprecated_message }} {{ $v.deprecated_message | markdownify }} {{ else }} This metric is deprecated. {{ end }}
{{ end }} {{ with $v.tags }}
{{ range $k, $v := . }}
{{ $k }} {{ if not $v.required }} {{ partial "badge.html" (dict "word" "optional" "color" "blue") }} {{ end }} {{ with $v.description }}
{{ . | markdownify }}
{{ end }}
{{ end }}
{{ end }}
{{ end }} {{ end }}