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

Change ClientResponse to accept an *http.Response #3617

Merged
merged 2 commits into from
Jan 26, 2023

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Jan 25, 2023

The net/http package returns a *Response value from all the functions and methods to perform requests. Having to dereference the value to pass to the httpconv.ClientResponse function is ergonomically not ideal. This changes the unrelease API for the v1.13.0, v1.14.0, v1.15.0, v1.16.0, and v1.17.0 semconv packages and the underlying generator to accept a pointer value instead.

@MrAlias MrAlias added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 25, 2023
@MrAlias MrAlias added this to the Release v1.12.0 milestone Jan 25, 2023
@codecov
Copy link

codecov bot commented Jan 25, 2023

Codecov Report

Merging #3617 (5136cd1) into main (c0fb8de) will not change coverage.
The diff coverage is 100.0%.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #3617   +/-   ##
=====================================
  Coverage   79.4%   79.4%           
=====================================
  Files        170     170           
  Lines      12628   12628           
=====================================
  Hits       10030   10030           
  Misses      2388    2388           
  Partials     210     210           
Impacted Files Coverage Δ
semconv/internal/v2/http.go 100.0% <100.0%> (ø)

@MrAlias MrAlias merged commit 604772d into open-telemetry:main Jan 26, 2023
@MrAlias MrAlias deleted the client-response-ptr branch January 26, 2023 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants