Skip to content

Commit

Permalink
Add http content size to standard package
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Xie <[email protected]>
  • Loading branch information
XSAM committed Jul 6, 2020
1 parent 27e892a commit 4fc6aa4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions api/standard/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,20 @@ const (
// The IP address of the original client behind all proxies, if known
// (e.g. from X-Forwarded-For).
HTTPClientIPKey = kv.Key("http.client_ip")

// The size of the request payload body in bytes.
HTTPRequestContentLength = kv.Key("http.request_content_length")

// The size of the uncompressed request payload body after transport decoding.
// Not set if transport encoding not used.
HTTPRequestContentLengthUncompressed = kv.Key("http.request_content_length_uncompressed")

// The size of the response payload body in bytes.
HTTPResponseContentLength = kv.Key("http.response_content_length")

// The size of the uncompressed response payload body after transport decoding.
// Not set if transport encoding not used.
HTTPResponseContentLengthUncompressed = kv.Key("http.response_content_length_uncompressed")
)

var (
Expand Down

0 comments on commit 4fc6aa4

Please sign in to comment.