Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Added payload size to http server integration #1129

Merged
merged 3 commits into from
Apr 24, 2019
Merged

Added payload size to http server integration #1129

merged 3 commits into from
Apr 24, 2019

Conversation

alexamies
Copy link
Contributor

Added payload size to http server integration, logged in the LogExporter, and modified example to use LogExporter

…ter, and modified example to use LogExporter
@alexamies alexamies requested review from rakyll, rghetia and a team as code owners April 24, 2019 02:41
@alexamies
Copy link
Contributor Author

Partially addresses issue
#1093

@@ -201,6 +207,9 @@ func (t *trackingResponseWriter) Header() http.Header {
func (t *trackingResponseWriter) Write(data []byte) (int, error) {
n, err := t.writer.Write(data)
t.respSize += int64(n)
// Add message event for request bytes read.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: s/read/sent/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrected in latest commit

@rghetia rghetia merged commit 2b542e7 into census-instrumentation:dev Apr 24, 2019
rghetia pushed a commit to rghetia/opencensus-go that referenced this pull request Apr 25, 2019
…#1129)

* Added payload size to http server integration, logged in the LogExporter, and modified example to use LogExporter

* Fixed format problems

* Corrected comment
rghetia pushed a commit that referenced this pull request Apr 25, 2019
* Added payload size to http server integration, logged in the LogExporter, and modified example to use LogExporter

* Fixed format problems

* Corrected comment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants