You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make the otelhttp Transport handle protocol switching (#1628)
* Make the otelhttp Transport handle protocol switching
* Remove ctx field from wrappedBody
This is an unused field.
* Add tests for the wrappedBody Write method
* Add changes to changelog
* Add full transport test for #1329
* Fix grammar in changelog entry
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,9 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
19
19
### Fixed
20
20
21
21
- Change the `http-server-duration` instrument in `go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp` to record milliseconds instead of microseconds match what is specified in the OpenTelemetry specification. (#1414, #1537)
22
+
- The `"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp".Transport` type now correctly handles protocol switching responses.
23
+
The returned response body implements the `io.ReadWriteCloser` interface if the underlying one does.
24
+
This ensures that protocol switching requests receive a response body that they can write to. (#1329, #1628)
0 commit comments