Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenience wrappers for http.Get/Post, etc. #390

Merged
merged 19 commits into from
Oct 21, 2020
Merged

Add convenience wrappers for http.Get/Post, etc. #390

merged 19 commits into from
Oct 21, 2020

Conversation

johnbley
Copy link
Member

@johnbley johnbley commented Oct 9, 2020

Add convenience wrappers for http.{Get,Post,Head,PostForm}
using the otelhttp transport and taking a context.Context directly.
Makes instrumenting code using the original http convenience methods a
one-line change instead of a multiline one.

Add convenience wrappers for http.{Get,Post,Head,PostForm}
using the otelhttp transport and taking a context.Context directly.
Makes instrumenting code using the original http convenience methods a
one-line change instead of a multiline one.
Copy link
Member

@Aneurysm9 Aneurysm9 left a comment

Choose a reason for hiding this comment

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

I like the idea! Can you please add some tests and a CHANGELOG.md entry?

instrumentation/net/http/otelhttp/client.go Outdated Show resolved Hide resolved
instrumentation/net/http/otelhttp/client.go Outdated Show resolved Hide resolved
instrumentation/net/http/otelhttp/client.go Outdated Show resolved Hide resolved
instrumentation/net/http/otelhttp/client.go Outdated Show resolved Hide resolved
johnbley and others added 5 commits October 9, 2020 15:06
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
@johnbley
Copy link
Member Author

johnbley commented Oct 9, 2020

I like the idea! Can you please add some tests and a CHANGELOG.md entry?

Added to CHANGELOG. Tests might need to wait a bit.

Co-authored-by: Sam Xie <xsambundy@gmail.com>
CHANGELOG.md Outdated Show resolved Hide resolved
instrumentation/net/http/otelhttp/client.go Outdated Show resolved Hide resolved
instrumentation/net/http/otelhttp/client_test.go Outdated Show resolved Hide resolved
instrumentation/net/http/otelhttp/client.go Outdated Show resolved Hide resolved
instrumentation/net/http/otelhttp/client_test.go Outdated Show resolved Hide resolved
@Aneurysm9
Copy link
Member

@johnbley one last thing, it looks like the CHANGELOG.md entry is still under the v0.13.0 release section. Can you move it up to Unreleased?

@Aneurysm9 Aneurysm9 merged commit 4f3d787 into open-telemetry:master Oct 21, 2020
@MrAlias MrAlias mentioned this pull request Nov 20, 2020
@pellared pellared added this to the untracked milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants