@@ -79,68 +79,68 @@ public struct HTTPAttributes: SpanAttributeNamespace {
7979 public init ( ) { }
8080
8181 /// HTTP request method. E.g. "GET".
82- public var method : SpanAttribute . Key < String > { . init( name: SpanAttributeName . HTTP. method) }
82+ public var method : Key < String > { . init( name: SpanAttributeName . HTTP. method) }
8383
8484 /// Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment].
8585 /// Usually the fragment is not transmitted over HTTP, but if it is known, it should be included nevertheless.
86- public var url : SpanAttribute . Key < String > { . init( name: SpanAttributeName . HTTP. url) }
86+ public var url : Key < String > { . init( name: SpanAttributeName . HTTP. url) }
8787
8888 /// The full request target as passed in a HTTP request line or equivalent, e.g. "/path/12314/?q=ddds#123".
89- public var target : SpanAttribute . Key < String > { . init( name: SpanAttributeName . HTTP. target) }
89+ public var target : Key < String > { . init( name: SpanAttributeName . HTTP. target) }
9090
9191 /// The value of the HTTP host header. When the header is empty or not present, this attribute should be the same.
92- public var host : SpanAttribute . Key < String > { . init( name: SpanAttributeName . HTTP. host) }
92+ public var host : Key < String > { . init( name: SpanAttributeName . HTTP. host) }
9393
9494 /// The URI scheme identifying the used protocol: "http" or "https"
95- public var scheme : SpanAttribute . Key < String > { . init( name: SpanAttributeName . HTTP. scheme) }
95+ public var scheme : Key < String > { . init( name: SpanAttributeName . HTTP. scheme) }
9696
9797 /// HTTP response status code. E.g. 200.
98- public var statusCode : SpanAttribute . Key < Int > { . init( name: SpanAttributeName . HTTP. statusCode) }
98+ public var statusCode : Key < Int > { . init( name: SpanAttributeName . HTTP. statusCode) }
9999
100100 /// HTTP reason phrase. E.g. "OK".
101- public var statusText : SpanAttribute . Key < String > { . init( name: SpanAttributeName . HTTP. statusText) }
101+ public var statusText : Key < String > { . init( name: SpanAttributeName . HTTP. statusText) }
102102
103103 /// Kind of HTTP protocol used: "1.0", "1.1", "2", "SPDY" or "QUIC".
104- public var flavor : SpanAttribute . Key < String > { . init( name: SpanAttributeName . HTTP. flavor) }
104+ public var flavor : Key < String > { . init( name: SpanAttributeName . HTTP. flavor) }
105105
106106 /// Value of the HTTP User-Agent header sent by the client.
107- public var userAgent : SpanAttribute . Key < String > { . init( name: SpanAttributeName . HTTP. userAgent) }
107+ public var userAgent : Key < String > { . init( name: SpanAttributeName . HTTP. userAgent) }
108108
109109 /// The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and is often,
110110 /// but not always, present as the Content-Length header. For requests using transport encoding, this should be the
111111 /// compressed size.
112- public var requestContentLength : SpanAttribute . Key < Int > {
112+ public var requestContentLength : Key < Int > {
113113 . init( name: SpanAttributeName . HTTP. requestContentLength)
114114 }
115115
116116 /// The size of the uncompressed request payload body after transport decoding. Not set if transport encoding not used.
117- public var requestContentLengthUncompressed : SpanAttribute . Key < Int > {
117+ public var requestContentLengthUncompressed : Key < Int > {
118118 . init( name: SpanAttributeName . HTTP. requestContentLengthUncompressed)
119119 }
120120
121121 /// The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and
122122 /// is often, but not always, present as the Content-Length header. For requests using transport encoding, this
123123 /// should be the compressed size.
124- public var responseContentLength : SpanAttribute . Key < Int > {
124+ public var responseContentLength : Key < Int > {
125125 . init( name: SpanAttributeName . HTTP. responseContentLength)
126126 }
127127
128128 /// The size of the uncompressed response payload body after transport decoding. Not set if transport encoding not used.
129- public var responseContentLengthUncompressed : SpanAttribute . Key < Int > {
129+ public var responseContentLengthUncompressed : Key < Int > {
130130 . init( name: SpanAttributeName . HTTP. responseContentLengthUncompressed)
131131 }
132132
133133 /// The primary server name of the matched virtual host. This should be obtained via configuration.
134134 /// If no such configuration can be obtained, this attribute MUST NOT be set (`net.hostName` should be used instead).
135- public var serverName : SpanAttribute . Key < String > { . init( name: SpanAttributeName . HTTP. serverName) }
135+ public var serverName : Key < String > { . init( name: SpanAttributeName . HTTP. serverName) }
136136
137137 /// The matched route (path template). E.g. "/users/:userID?".
138- public var serverRoute : SpanAttribute . Key < String > { . init( name: SpanAttributeName . HTTP. serverRoute) }
138+ public var serverRoute : Key < String > { . init( name: SpanAttributeName . HTTP. serverRoute) }
139139
140140 /// The IP address of the original client behind all proxies, if known (e.g. from X-Forwarded-For).
141141 /// Note that this is not necessarily the same as `net.peerIP`, which would identify the network-level peer,
142142 /// which may be a proxy.
143- public var serverClientIP : SpanAttribute . Key < String > { . init( name: SpanAttributeName . HTTP. serverClientIP) }
143+ public var serverClientIP : Key < String > { . init( name: SpanAttributeName . HTTP. serverClientIP) }
144144 }
145145}
146146#endif
0 commit comments