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

Added payload size to http server integration#1129

Merged
rghetia merged 3 commits intocensus-instrumentation:devfrom
alexamies:dev
Apr 24, 2019
Merged

Added payload size to http server integration#1129
rghetia merged 3 commits intocensus-instrumentation:devfrom
alexamies:dev

Conversation

@alexamies
Copy link
Copy Markdown
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 a team, rakyll and rghetia as code owners April 24, 2019 02:41
@alexamies
Copy link
Copy Markdown
Contributor Author

Partially addresses issue
#1093

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
Copy Markdown
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
Copy Markdown
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