Support for "map" conventions based on prefixes #29
Labels
semconv/model
Related to the data model or YAML format of the semantic convention generator
semconv
Related to the semantic convention generator.
See this suggested semantic convention for HTTP headers: open-telemetry/opentelemetry-specification#1061.
Right now, I think it is not possible to specify this in the semantic convention generator. It would be useful however to generate a constant for the
http.request.header
prefix (orhttp.request.header.
with a trailing dot, or a functionstring httpRequestHeaderName(string key) { return 'http.request.header' + key; }
.In the markdown, this should probably be designated by adding
.*
to the name of the attribute. E.g. like this:http.request.header.<key>
<key>
being the HTTP Header name (case preserving), the value being the header values.http.request.header.Content-Type
=["application/json"]
;http.request.X-Forwarded-for
=["1.2.3.4", "1.2.3.5"]
In the YAML source:
type: prefix_map: string[]
.The text was updated successfully, but these errors were encountered: