1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-23 22:34:47 +02:00

Change ClientResponse to accept an *http.Response (#3617)

This commit is contained in:
Tyler Yahn
2023-01-26 09:21:55 -08:00
committed by GitHub
parent c0fb8dec4c
commit 604772dda3
8 changed files with 8 additions and 8 deletions

View File

@@ -53,7 +53,7 @@ type HTTPConv struct {
// request contained in resp. For example:
//
// append(ClientResponse(resp), ClientRequest(resp.Request)...)
func (c *HTTPConv) ClientResponse(resp http.Response) []attribute.KeyValue {
func (c *HTTPConv) ClientResponse(resp *http.Response) []attribute.KeyValue {
var n int
if resp.StatusCode > 0 {
n++