You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Values represent extracted values from HTTP request and response to be used for Span and Metrics attributes.
@@ -248,6 +250,18 @@ type Values struct {
248
250
// * metric - Conditionally Required If and only if it's available
249
251
HTTPRoutestring// metric, span
250
252
253
+
// HTTPRequestBodySize (`http.request.body.size`) is the size of the request payload body in bytes. This is the number
254
+
// of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length)
255
+
// header. For requests using transport encoding, this should be the compressed size.
// * metric - optional, is actual Histogram metric (`http.server.response.body.size`) and NOT attribute to metric.
269
283
HTTPResponseBodySizeint64// metric
270
-
271
-
// HTTPRequestBodySize (`http.request.body.size`) is the size of the request payload body in bytes. This is the number
272
-
// of bytes transferred excluding headers and is often, but not always, present as the [Content-Length](https://www.rfc-editor.org/rfc/rfc9110.html#field.content-length)
273
-
// header. For requests using transport encoding, this should be the compressed size.
r.Header.Add("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36")
58
+
returnr
59
+
}(),
60
+
expect: Values{
61
+
HTTPMethod: "GET",
62
+
HTTPMethodOriginal: "gEt",
63
+
ServerAddress: "example.com",
64
+
ServerPort: 8433,
65
+
NetworkPeerAddress: "127.0.0.1",
66
+
NetworkPeerPort: 8080,
67
+
ClientAddress: "127.0.0.1",
68
+
URLScheme: "http",
69
+
URLPath: "/path",
70
+
UserAgentOriginal: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36",
0 commit comments