@@ -108,16 +108,16 @@ package semconv // import [[IMPORTPATH]]
108
108
import "go.opentelemetry.io/otel/attribute"
109
109
110
110
{% for semconv in semconvs -%}
111
- {% - if semconvs [semconv ].attributes | rejectattr ("ref" ) | selectattr ("is_local" ) | sort (attribute =fqn ) | length > 0 -%}
111
+ {% - if semconvs [semconv ].attributes | rejectattr ("ref" ) | rejectattr ( "deprecated" ) | selectattr ("is_local" ) | sort (attribute =fqn ) | length > 0 -%}
112
112
// {{ sentence_case(semconvs[semconv] .brief | replace("This document defines ", "")) | wordwrap(76, break_long_words=false, break_on_hyphens=false, wrapstring="\n// ") }}
113
113
const (
114
- {% - for attr in semconvs [semconv ].attributes if attr .is_local and not attr .ref %}
114
+ {% - for attr in semconvs [semconv ].attributes if attr .is_local and not attr .ref and not attr . deprecated %}
115
115
// {{ keydoc(attr) | wordwrap(72, break_long_words=false, break_on_hyphens=false, wrapstring="\n\t// ") }}
116
116
// {{ keydetails(attr) | wordwrap(72, break_long_words=false, break_on_hyphens=false, wrapstring="\n\t// ") }}
117
117
{{to_go_name(attr.fqn)}}Key = attribute.Key("{{attr.fqn}}")
118
118
{% endfor -%}
119
119
)
120
- {% - for attr in semconvs [semconv ].attributes if attr .is_local and not attr .ref -%}
120
+ {% - for attr in semconvs [semconv ].attributes if attr .is_local and not attr .ref and not attr . deprecated -%}
121
121
{% - if attr .attr_type is not string %}
122
122
123
123
var (
@@ -132,7 +132,7 @@ var (
132
132
)
133
133
{% - endif -%}
134
134
{% - endfor %}
135
- {% - for attr in semconvs [semconv ].attributes if attr .is_local and not attr .ref -%}
135
+ {% - for attr in semconvs [semconv ].attributes if attr .is_local and not attr .ref and not attr . deprecated -%}
136
136
{% - if attr .attr_type is string %}
137
137
138
138
{{ fndoc(attr) | wordwrap(76, break_long_words=false, break_on_hyphens=false, wrapstring="\n// ") }}
0 commit comments